fix listbox thread-safe issue(#329)

This commit is contained in:
Jinhao
2018-07-28 09:34:08 +08:00
parent 3962cc1aee
commit df5fda9096
2 changed files with 34 additions and 0 deletions

View File

@@ -1028,6 +1028,7 @@ namespace nana
template<typename T>
void append_model(const T& t)
{
nana::internal_scope_guard lock;
_m_try_append_model(const_virtual_pointer{ &t });
_m_update();
}