aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2019-10-22 21:06:43 +0200
committerBastien Bouclet2019-10-23 20:57:47 +0200
commit358d95e9096dd80203c8417e3c099fe7b063de14 (patch)
tree562340b1f8f5a5847590f484ff524207dd5308f9 /gui/options.cpp
parent4cc15770e34e6d66fc12d9acb694bc54b8a64402 (diff)
downloadscummvm-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/options.cpp')
-rw-r--r--gui/options.cpp2
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();