[Scummvm-git-logs] scummvm master -> a18eae10679ed12fb6a37c93cb0b391df874c7c6

dreammaster paulfgilbert at gmail.com
Fri Jan 10 02:37:27 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a18eae1067 GUI: Fix crash opening edit game dialog for games with no music


Commit: a18eae10679ed12fb6a37c93cb0b391df874c7c6
    https://github.com/scummvm/scummvm/commit/a18eae10679ed12fb6a37c93cb0b391df874c7c6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2020-01-09T18:37:19-08:00

Commit Message:
GUI: Fix crash opening edit game dialog for games with no music

Changed paths:
    gui/editgamedialog.cpp


diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp
index 60feac1..449bcc5 100644
--- a/gui/editgamedialog.cpp
+++ b/gui/editgamedialog.cpp
@@ -341,14 +341,12 @@ void EditGameDialog::open() {
 		ConfMan.hasKey("speech_volume", _domain);
 	_globalVolumeOverride->setState(e);
 
-	if (!_guioptions.contains(GUIO_NOMIDI)) {
+	if (!_guioptions.contains(GUIO_NOMIDI) && !_guioptions.contains(GUIO_NOMUSIC)) {
 		e = ConfMan.hasKey("soundfont", _domain) ||
 			ConfMan.hasKey("multi_midi", _domain) ||
 			ConfMan.hasKey("midi_gain", _domain);
 		_globalMIDIOverride->setState(e);
-	}
 
-	if (!_guioptions.contains(GUIO_NOMIDI)) {
 		e = ConfMan.hasKey("native_mt32", _domain) ||
 			ConfMan.hasKey("enable_gs", _domain);
 		_globalMT32Override->setState(e);




More information about the Scummvm-git-logs mailing list