summaryrefslogtreecommitdiffhomepage
path: root/gui/options-dialog.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-27 11:40:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-27 11:42:28 +0100
commit303c83792cd034fc2bf40e71edde968c22df5324 (patch)
tree13df052f49cff97f1cb304de571c74a76bbe6a9b /gui/options-dialog.hpp
parentea145f8c1cc188f20e066af78e4167036b3993de (diff)
{base,options}-dialog: fix dialogs not savingopentrack-2.3.1_fix2
In case of the options dialog, running close() in doOK() made it go into closeEvent(), going into doCancel(), and reloading the settings prior to them getting saved. It's time for a hotfix2 build.
Diffstat (limited to 'gui/options-dialog.hpp')
-rw-r--r--gui/options-dialog.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp
index e9359b6d..dab919ed 100644
--- a/gui/options-dialog.hpp
+++ b/gui/options-dialog.hpp
@@ -18,7 +18,7 @@ private:
main_settings main;
std::function<void(bool)> pause_keybindings;
Ui::options_dialog ui;
- void closeEvent(QCloseEvent *) override { doCancel(); }
+ void closeEvent(QCloseEvent *) override;
static QString kopts_to_string(const key_opts& opts);
private slots:
void doOK();