Skip to content

Commit

Permalink
options/tie: fix QComboBox connect() thread safety
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Oct 10, 2022
1 parent 6188459 commit 0f82330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options/tie.hpp
Expand Up @@ -57,7 +57,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, [cb, fn_to_index](detail::cv_qualified<t>& v) { cb->setCurrentIndex(fn_to_index(v)); },
v.DIRECT_CONNTYPE);
v.SAFE_CONNTYPE);
}

template<typename t, typename F>
Expand Down

0 comments on commit 0f82330

Please sign in to comment.