mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +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();
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user