[Scummvm-git-logs] scummvm master -> 358d95e9096dd80203c8417e3c099fe7b063de14
bgK
bastien.bouclet at gmail.com
Wed Oct 23 20:58:58 CEST 2019
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:
358d95e909 GUI: Fix pressing escape erroneously saving the changes in the options dialog
Commit: 358d95e9096dd80203c8417e3c099fe7b063de14
https://github.com/scummvm/scummvm/commit/358d95e9096dd80203c8417e3c099fe7b063de14
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2019-10-23T20:57:47+02:00
Commit Message:
GUI: Fix pressing escape erroneously saving the changes in the options dialog
Pressing escape sets the dialog result to -1.
Changed paths:
gui/options.cpp
diff --git a/gui/options.cpp b/gui/options.cpp
index 6cf7df0..a324ef6 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -759,7 +759,7 @@ void OptionsDialog::apply() {
}
void OptionsDialog::close() {
- if (getResult())
+ if (getResult() > 0)
apply();
Dialog::close();
More information about the Scummvm-git-logs
mailing list