[Scummvm-git-logs] scummvm master -> 2c2922d4b3723f0dd259133271818a8adcb1cd80
bluegr
noreply at scummvm.org
Fri Jul 1 06:06:13 UTC 2022
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:
2c2922d4b3 GUI: Preserve the enabled state of _soundFontClearButton when reflowing the window
Commit: 2c2922d4b3723f0dd259133271818a8adcb1cd80
https://github.com/scummvm/scummvm/commit/2c2922d4b3723f0dd259133271818a8adcb1cd80
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2022-07-01T09:06:10+03:00
Commit Message:
GUI: Preserve the enabled state of _soundFontClearButton when reflowing the window
Changed paths:
gui/options.cpp
diff --git a/gui/options.cpp b/gui/options.cpp
index 2a9a7372268..19e3dcc1e2c 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -3271,10 +3271,12 @@ void GlobalOptionsDialog::reflowLayout() {
if (_midiTabId != -1) {
_tabWidget->setActiveTab(_midiTabId);
+ bool enabled = _soundFontClearButton->isEnabled();
_tabWidget->removeWidget(_soundFontClearButton);
_soundFontClearButton->setNext(nullptr);
delete _soundFontClearButton;
_soundFontClearButton = addClearButton(_tabWidget, "GlobalOptions_MIDI.mcFontClearButton", kClearSoundFontCmd);
+ _soundFontClearButton->setEnabled(enabled);
}
if (_pathsTabId != -1) {
More information about the Scummvm-git-logs
mailing list