Qt: fix thumbnail display in file browser when name has dots in it

This commit is contained in:
Brad Parker 2018-07-31 11:34:25 -04:00
parent b60e35ce48
commit bdf5efd4ab

View File

@ -2727,7 +2727,7 @@ void MainWindow::selectBrowserDir(QString path)
hash["path"] = filePath;
hash["label"] = hash["path"];
hash["label_noext"] = fileInfo.fileName().remove(QString(".") + fileInfo.completeSuffix());
hash["label_noext"] = fileInfo.completeBaseName();
hash["db_name"] = fileInfo.dir().dirName();
item->setData(Qt::UserRole, QVariant::fromValue<QHash<QString, QString> >(hash));