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));