Fix cleanup when deleting mode
This commit is contained in:
parent
96f0e82688
commit
cacea26e3f
@ -110,6 +110,13 @@ Mode::~Mode()
|
||||
modes[tabbar->currentIndex()]->activate();
|
||||
}
|
||||
window->getCentral()->removeWidget(central);
|
||||
delete central;
|
||||
for(auto d : docks) {
|
||||
delete d;
|
||||
}
|
||||
for(auto t : toolbars) {
|
||||
delete t;
|
||||
}
|
||||
}
|
||||
|
||||
void Mode::activate()
|
||||
|
Loading…
Reference in New Issue
Block a user