summaryrefslogtreecommitdiffhomepage
path: root/gui/ui.cpp
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/ui.cpp
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/ui.cpp')
-rw-r--r--gui/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp
index 63f40cf8..cda7d94b 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -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()));
}