Fix cleanup when deleting mode

This commit is contained in:
Jan Käberich 2022-04-22 13:04:36 +02:00
parent 96f0e82688
commit cacea26e3f

View File

@ -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()