diff options
author | Bastien Bouclet | 2019-10-22 21:06:43 +0200 |
---|---|---|
committer | Bastien Bouclet | 2019-10-23 20:57:47 +0200 |
commit | 358d95e9096dd80203c8417e3c099fe7b063de14 (patch) | |
tree | 562340b1f8f5a5847590f484ff524207dd5308f9 /gui | |
parent | 4cc15770e34e6d66fc12d9acb694bc54b8a64402 (diff) | |
download | scummvm-rg350-358d95e9096dd80203c8417e3c099fe7b063de14.tar.gz scummvm-rg350-358d95e9096dd80203c8417e3c099fe7b063de14.tar.bz2 scummvm-rg350-358d95e9096dd80203c8417e3c099fe7b063de14.zip |
GUI: Fix pressing escape erroneously saving the changes in the options dialog
Pressing escape sets the dialog result to -1.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index 6cf7df0f08..a324ef6338 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(); |