fix issue that menu wouldn't close window when destructs the menu

This commit is contained in:
Jinhao 2017-05-06 04:40:49 +08:00
parent d386400d1c
commit 017630b22a

View File

@ -1120,6 +1120,7 @@ namespace nana
menu::~menu()
{
this->close();
for(auto i = impl_->sub_container.rbegin(); i != impl_->sub_container.rend(); ++i)
{
if(i->second.kill)