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