Skip to content

Commit ca68c84

Browse files
committed
Handle filenames with periods in basename consistently. (#199)
Use QFileInfo::completeBaseName() instead of QFileInfo::baseName() in Model::shortName(). This was already the case when building list of recent labels in MainWindow.
1 parent 18b0a1b commit ca68c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/Model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ namespace glabels
343343
else
344344
{
345345
QFileInfo fileInfo( mFileName );
346-
return fileInfo.baseName();
346+
return fileInfo.completeBaseName();
347347
}
348348
}
349349

0 commit comments

Comments
 (0)