diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-08-25 16:57:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-08-25 16:57:51 +0200 |
commit | 4298182603c85ca21aa325c3f6e289e0ad72e646 (patch) | |
tree | dac908ba83abfa0953129df725a048ee89c1459e /options | |
parent | 366d246f99910c0b793ea227e6a8b3065c77f6f0 (diff) |
options/tie: fix typo in bind list
Diffstat (limited to 'options')
-rw-r--r-- | options/tie.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options/tie.hpp b/options/tie.hpp index 4f224f23..f2ec751d 100644 --- a/options/tie.hpp +++ b/options/tie.hpp @@ -65,7 +65,7 @@ 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, [cb, fn_to_index](cv_qualified<t>& v) { run_in_thread_sync(cb, [&] { cb->setCurrentIndex(fn_to_index(v)); }); @@ -75,7 +75,7 @@ void tie_setting(value<t>& v, QComboBox* cb, From&& fn_to_index, To&& fn_to_valu template<typename t, typename F> void tie_setting(value<t>& v, QLabel* lb, F&& fun) { - auto closure = [=](cv_qualified<t> x) { lb->setText(fun(x)); }; + auto closure = [lb, fun](cv_qualified<t> v) { lb->setText(fun(v)); }; closure(v()); value_::connect(&v, value_::value_changed<t>(), |