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/ui.cpp | |
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/ui.cpp')
-rw-r--r-- | gui/ui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -492,7 +492,7 @@ bool mk_window(mem<t>* place, Args&&... params) void MainWindow::show_options_dialog() { - if (mk_window(&options_widget, s, [&](bool flag) -> void { set_keys_enabled(!flag); })) + if (mk_window(&options_widget, [&](bool flag) -> void { set_keys_enabled(!flag); })) { connect(options_widget.get(), SIGNAL(reload()), this, SLOT(reload_options())); } |