summaryrefslogtreecommitdiffhomepage
path: root/gui/options-dialog.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-29 10:09:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-29 13:18:22 +0200
commit87622615e5adc5b96f404b3255aa6af5a90043ee (patch)
tree9231116ead1dd109b2700422b1ca640a9a3dbed9 /gui/options-dialog.hpp
parent68e5a04f438fafd984ac0bf0424fa75294a8dc06 (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.hpp4
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(); }