diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-29 10:09:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-29 13:18:22 +0200 |
commit | 87622615e5adc5b96f404b3255aa6af5a90043ee (patch) | |
tree | 9231116ead1dd109b2700422b1ca640a9a3dbed9 /gui/options-dialog.hpp | |
parent | 68e5a04f438fafd984ac0bf0424fa75294a8dc06 (diff) |
gui/options: fix cancel button
The "struct opts" dtor doesn't run at dialog close time so invoke
"reload" on the bundle explicitly.
Diffstat (limited to 'gui/options-dialog.hpp')
-rw-r--r-- | gui/options-dialog.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp index eee9d090..6b04aa09 100644 --- a/gui/options-dialog.hpp +++ b/gui/options-dialog.hpp @@ -12,9 +12,9 @@ class OptionsDialog: public QWidget signals: void reload(); public: - OptionsDialog(main_settings& main, std::function<void(bool)> pause_keybindings); + OptionsDialog(std::function<void(bool)> pause_keybindings); private: - main_settings& main; + main_settings main; std::function<void(bool)> pause_keybindings; Ui::UI_Settings ui; void closeEvent(QCloseEvent *) override { doCancel(); } |