Close SnapshotsDialog when database restaured and fix a bug : forgot to delete panel in wxUI::LoadPanels
This commit is contained in:
@@ -212,6 +212,7 @@ void wxUI::LoadPanels()
|
||||
{
|
||||
temp = _panels[i]->CreatePanel();
|
||||
_buttons[i]->disconnect(&_signalMapper, SLOT(map()));
|
||||
delete _panels[i];
|
||||
_panels[i] = temp;
|
||||
connect(_buttons[i], SIGNAL(clicked()), &_signalMapper, SLOT(map()));
|
||||
_buttons[i]->setToolTip(temp->GetToolTip());
|
||||
|
||||
Reference in New Issue
Block a user