summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-06-05 15:57:11 +0200
committerGitHub <noreply@github.com>2018-06-05 15:57:11 +0200
commitbfbd890caa07ac5ab96d474cc983b548491f1456 (patch)
tree2df9097f3b446b30aee8495858624ae41e425798 /Source/Core
parent7e45ff7a0d0aecce6cb490dda32f9897269884d7 (diff)
parent07b26f8bcaff8cf961e9839299c2a391bdc9b6ae (diff)
Merge pull request #7080 from spycrab/qt_noprop_elfdol
Qt/GameList: Don't show certain options when a DOL/ELF is selected.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.cpp11
1 files 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)
{