diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp index 252acede86..45fa15dd86 100644 --- a/ui/drivers/qt/ui_qt_window.cpp +++ b/ui/drivers/qt/ui_qt_window.cpp @@ -3036,13 +3036,20 @@ void MainWindow::onRunClicked() ViewType viewType = getCurrentViewType(); QHash contentHash; - if (!item) - return; - if (viewType == VIEW_TYPE_LIST) + { + if (!item) + return; + contentHash = item->data(Qt::UserRole).value >(); + } else if (viewType == VIEW_TYPE_ICONS) + { contentHash = m_currentGridHash; + + if (contentHash.isEmpty()) + return; + } else return;