Fix a bug : buttons doesn't disappear on KillMe
This commit is contained in:
parent
28bb4c49f0
commit
993e6b1759
|
@ -326,8 +326,9 @@ void wxUI::KillMe()
|
|||
{
|
||||
if (*it)
|
||||
{
|
||||
_buttonsBox->removeWidget(*it);
|
||||
_buttonsBox->removeWidget(*_buttons.begin());
|
||||
delete *it;
|
||||
delete *_buttons.begin();
|
||||
}
|
||||
_buttons.erase(_buttons.begin());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user