summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-05-06 21:01:44 +0200
committerLéo Lam <leo@innovatetechnologi.es>2018-05-06 21:01:44 +0200
commit7dcab20bfa64236fd005beb7e985b090429bf303 (patch)
treef296bdd36277fca3a857bd57dd98998bfbcac410
parentc3d88a622db039b0e9396f6af08cb8b6cbf95b76 (diff)
Qt: Disable 'uninstall' action if title is not installed
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.cpp2
1 files changed, 2 insertions, 0 deletions
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);