summaryrefslogtreecommitdiffhomepage
path: root/options/tie.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-08 23:20:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-08 23:20:56 +0200
commit90940a774eab876c38d5cef981b4be5bae67a462 (patch)
tree2e60edc1719ffd53752a55a7f0444166965e90c5 /options/tie.hpp
parente3292e1ddaa8d69eb320d2700fc582b4675cf8ce (diff)
modernize only
Diffstat (limited to 'options/tie.hpp')
-rw-r--r--options/tie.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/tie.hpp b/options/tie.hpp
index 59fd0da1..aa83c7cb 100644
--- a/options/tie.hpp
+++ b/options/tie.hpp
@@ -66,11 +66,11 @@ void tie_setting(value<t>& v, QComboBox* cb, From&& fn_to_index, To&& fn_to_valu
});
}, v.DIRECT_CONNTYPE);
value_::connect(&v, value_::value_changed<t>(),
- cb, [&v, cb, fn_to_index](cv_qualified<t>& v) {
+ cb, [&v, cb, fn_to_index](cv_qualified<t>& v) {
run_in_thread_sync(cb, [&] {
cb->setCurrentIndex(fn_to_index(v));
});
- });
+ }, v.DIRECT_CONNTYPE);
}
template<typename t, typename F>