From 0b2b72b3665af9f3c7d274a514d8c932f474f181 Mon Sep 17 00:00:00 2001 From: spycrab Date: Thu, 7 Sep 2017 01:27:48 +0200 Subject: [PATCH] Qt: Fix Wii Disc options being disabled while core is running --- Source/Core/DolphinQt2/GameList/GameList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 95357eb304..269dd89627 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -185,10 +185,10 @@ void GameList::ShowContextMenu(const QPoint&) if (platform == DiscIO::Platform::WII_DISC) { - AddAction(menu, tr("Perform System Update"), this, [this] { + auto* perform_disc_update = AddAction(menu, tr("Perform System Update"), this, [this] { WiiUpdate::PerformDiscUpdate(GetSelectedGame()->GetFilePath().toStdString(), this); }); - menu->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii); + perform_disc_update->setEnabled(!Core::IsRunning() || !SConfig::GetInstance().bWii); } if (platform == DiscIO::Platform::WII_WAD)