summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ea202064..a29ea8ab 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5305,6 +5305,10 @@ void MainWindow::activateDataTreeItem(QTreeWidgetItem *item, int column)
}
const QString path = item->data(0, Qt::UserRole).toString();
+ if (path.isEmpty()) {
+ return;
+ }
+
const QFileInfo targetInfo(path);
const auto tryPreview = m_OrganizerCore.settings().interface().doubleClicksOpenPreviews();