Qt: fix loading of content from grid view with core set to "ask me"

This commit is contained in:
Brad Parker 2018-07-30 22:52:14 -04:00
parent e63edfa6d2
commit d5ae00f3d8

View File

@ -3036,13 +3036,20 @@ void MainWindow::onRunClicked()
ViewType viewType = getCurrentViewType();
QHash<QString, QString> contentHash;
if (!item)
return;
if (viewType == VIEW_TYPE_LIST)
{
if (!item)
return;
contentHash = item->data(Qt::UserRole).value<QHash<QString, QString> >();
}
else if (viewType == VIEW_TYPE_ICONS)
{
contentHash = m_currentGridHash;
if (contentHash.isEmpty())
return;
}
else
return;