From 7dcab20bfa64236fd005beb7e985b090429bf303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 6 May 2018 21:01:44 +0200 Subject: [PATCH] Qt: Disable 'uninstall' action if title is not installed --- Source/Core/DolphinQt2/GameList/GameList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 8ccec0ea32..76aef93609 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -210,6 +210,8 @@ void GameList::ShowContextMenu(const QPoint&) a->setEnabled(!Core::IsRunning()); menu->addAction(a); } + if (!Core::IsRunning()) + wad_uninstall_action->setEnabled(WiiUtils::IsTitleInstalled(game->GetTitleID())); connect(&Settings::Instance(), &Settings::EmulationStateChanged, menu, [=](Core::State state) { wad_install_action->setEnabled(state == Core::State::Uninitialized);