mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Qt: fix loading of content from grid view with core set to "ask me"
This commit is contained in:
parent
e63edfa6d2
commit
d5ae00f3d8
@ -3036,13 +3036,20 @@ void MainWindow::onRunClicked()
|
|||||||
ViewType viewType = getCurrentViewType();
|
ViewType viewType = getCurrentViewType();
|
||||||
QHash<QString, QString> contentHash;
|
QHash<QString, QString> contentHash;
|
||||||
|
|
||||||
if (!item)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (viewType == VIEW_TYPE_LIST)
|
if (viewType == VIEW_TYPE_LIST)
|
||||||
|
{
|
||||||
|
if (!item)
|
||||||
|
return;
|
||||||
|
|
||||||
contentHash = item->data(Qt::UserRole).value<QHash<QString, QString> >();
|
contentHash = item->data(Qt::UserRole).value<QHash<QString, QString> >();
|
||||||
|
}
|
||||||
else if (viewType == VIEW_TYPE_ICONS)
|
else if (viewType == VIEW_TYPE_ICONS)
|
||||||
|
{
|
||||||
contentHash = m_currentGridHash;
|
contentHash = m_currentGridHash;
|
||||||
|
|
||||||
|
if (contentHash.isEmpty())
|
||||||
|
return;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user