fix issue that menu wouldn't close window when destructs the menu
This commit is contained in:
parent
d386400d1c
commit
017630b22a
@ -1120,6 +1120,7 @@ namespace nana
|
|||||||
|
|
||||||
menu::~menu()
|
menu::~menu()
|
||||||
{
|
{
|
||||||
|
this->close();
|
||||||
for(auto i = impl_->sub_container.rbegin(); i != impl_->sub_container.rend(); ++i)
|
for(auto i = impl_->sub_container.rbegin(); i != impl_->sub_container.rend(); ++i)
|
||||||
{
|
{
|
||||||
if(i->second.kill)
|
if(i->second.kill)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user