Qt: fix thumbnail display in file browser when name has dots in it
This commit is contained in:
parent
b60e35ce48
commit
bdf5efd4ab
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue