From 07b26f8bcaff8cf961e9839299c2a391bdc9b6ae Mon Sep 17 00:00:00 2001 From: spycrab Date: Tue, 5 Jun 2018 13:27:36 +0200 Subject: [PATCH] Qt/GameList: Don't show certain options when a DOL/ELF is selected. --- Source/Core/DolphinQt2/GameList/GameList.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 247de05abe..d33068d159 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -170,9 +170,14 @@ void GameList::ShowContextMenu(const QPoint&) QMenu* menu = new QMenu(this); DiscIO::Platform platform = game->GetPlatform(); - AddAction(menu, tr("&Properties"), this, &GameList::OpenProperties); - AddAction(menu, tr("&Wiki"), this, &GameList::OpenWiki); - menu->addSeparator(); + + if (platform != DiscIO::Platform::ELFOrDOL) + { + AddAction(menu, tr("&Properties"), this, &GameList::OpenProperties); + AddAction(menu, tr("&Wiki"), this, &GameList::OpenWiki); + + menu->addSeparator(); + } if (platform == DiscIO::Platform::GameCubeDisc || platform == DiscIO::Platform::WiiDisc) {