From d5ae00f3d8e9729d853255b319b161d44fb682fc Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Mon, 30 Jul 2018 22:52:14 -0400 Subject: [PATCH] Qt: fix loading of content from grid view with core set to "ask me" --- ui/drivers/qt/ui_qt_window.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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;