cool, the program disappear inversely

This commit is contained in:
qPCR4vir 2016-03-18 22:22:55 +01:00
parent 10eaa91c3c
commit b0815fafca

View File

@ -528,8 +528,14 @@ namespace nana
{ {
for (auto i = elements.begin(), end = elements.end(); i != end; ++i) for (auto i = elements.begin(), end = elements.end(); i != end; ++i)
{ {
if (!API::is_destroying(API::get_parent_window(wd))) if (i->handle == wd)
place_ptr_->collocate(); {
elements.erase(i);
if (!API::is_destroying(API::get_parent_window(wd)))
place_ptr_->collocate();
break;
}
} }
}); });
} }