From bdf5efd4ab162f8d3d50029b3f9a79fc56578c07 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Tue, 31 Jul 2018 11:34:25 -0400 Subject: [PATCH] Qt: fix thumbnail display in file browser when name has dots in it --- ui/drivers/qt/ui_qt_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp index 396ce8d617..89eef139db 100644 --- a/ui/drivers/qt/ui_qt_window.cpp +++ b/ui/drivers/qt/ui_qt_window.cpp @@ -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 >(hash));