From 358d95e9096dd80203c8417e3c099fe7b063de14 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Tue, 22 Oct 2019 21:06:43 +0200 Subject: GUI: Fix pressing escape erroneously saving the changes in the options dialog Pressing escape sets the dialog result to -1. --- gui/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui') 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(); -- cgit v1.2.3