diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-14 13:52:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-14 13:52:08 -0500 |
| commit | a912be4c6b7200a76aa16f7fedd50271e5684320 (patch) | |
| tree | cd507d7d2abd67f775fefa33394fdd14a8eac52e /src/mainwindow.cpp | |
| parent | 4c7b626e7748cae0f7c1933989bc1bcb755664f7 (diff) | |
| parent | 7af0e164f778ee8b2135e097856a597f5d68b873 (diff) | |
Merge pull request #939 from isanae/data-root-activate
Double-click on root item in the Data tab
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
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(); |
