1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-21 18:40:09 +00:00

Qt: use core display name if regular name is empty

This commit is contained in:
Brad Parker 2018-08-10 15:10:18 -04:00
parent 51f968c557
commit 8d5f2ad1de

@ -1983,12 +1983,22 @@ void MainWindow::onPlaylistWidgetContextMenuRequested(const QPoint&)
QString key;
const core_info_t *core = NULL;
QAction *action = NULL;
QString name;
coreListIterator.next();
key = coreListIterator.key();
core = coreList.value(key);
action = associateMenu->addAction(core->core_name);
if (string_is_empty(core->core_name))
name = core->display_name;
else
name = core->core_name;
if (name.isEmpty())
continue;
action = associateMenu->addAction(name);
action->setProperty("core_path", core->path);
}
}