mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
Merge pull request #5934 from leoetlino/qt-fix
Qt: Fix old usage of GetSelectedGame
This commit is contained in:
commit
8134a63486
@ -169,7 +169,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
|||||||
if (platform == DiscIO::Platform::WII_DISC)
|
if (platform == DiscIO::Platform::WII_DISC)
|
||||||
{
|
{
|
||||||
menu->addAction(tr("Perform System Update"), [this] {
|
menu->addAction(tr("Perform System Update"), [this] {
|
||||||
WiiUpdate::PerformDiscUpdate(GetSelectedGame().toStdString(), this);
|
WiiUpdate::PerformDiscUpdate(GetSelectedGame()->GetFilePath().toStdString(), this);
|
||||||
});
|
});
|
||||||
menu->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
|
menu->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user