aboutsummaryrefslogtreecommitdiff
path: root/gui/editgamedialog.cpp
diff options
context:
space:
mode:
authorHenrik "Henke37" Andersson2019-12-03 08:35:05 +0100
committerFilippos Karapetis2019-12-07 21:14:44 +0200
commitb469747f7a756d53c2d8dfb61ff426e62f7ca5b1 (patch)
treee755958c401a5853fec15881f226813dcd732de6 /gui/editgamedialog.cpp
parentba42af45db156ae8a334c3d1275b3070e2077e37 (diff)
downloadscummvm-rg350-b469747f7a756d53c2d8dfb61ff426e62f7ca5b1.tar.gz
scummvm-rg350-b469747f7a756d53c2d8dfb61ff426e62f7ca5b1.tar.bz2
scummvm-rg350-b469747f7a756d53c2d8dfb61ff426e62f7ca5b1.zip
GUI: Don't show midi setting tabs if the game has no music at all.
Diffstat (limited to 'gui/editgamedialog.cpp')
-rw-r--r--gui/editgamedialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp
index 1b34a4753d..c2953dc8e5 100644
--- a/gui/editgamedialog.cpp
+++ b/gui/editgamedialog.cpp
@@ -223,11 +223,13 @@ EditGameDialog::EditGameDialog(const String &domain)
addVolumeControls(tab, "GameOptions_Volume.");
+ bool showMidi = !_guioptions.contains(GUIO_NOMIDI) && !_guioptions.contains(GUIO_NOMUSIC);
+
//
// 6) The MIDI tab
//
_globalMIDIOverride = NULL;
- if (!_guioptions.contains(GUIO_NOMIDI)) {
+ if (showMidi) {
tab->addTab(_("MIDI"));
if (g_system->getOverlayWidth() > 320)
@@ -242,7 +244,7 @@ EditGameDialog::EditGameDialog(const String &domain)
// 7) The MT-32 tab
//
_globalMT32Override = NULL;
- if (!_guioptions.contains(GUIO_NOMIDI)) {
+ if (showMidi) {
tab->addTab(_("MT-32"));
if (g_system->getOverlayWidth() > 320)