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.
This commit is contained in:
+1
-1
@@ -343,7 +343,7 @@ namespace glabels
|
||||
else
|
||||
{
|
||||
QFileInfo fileInfo( mFileName );
|
||||
return fileInfo.baseName();
|
||||
return fileInfo.completeBaseName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user