mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 14:35:23 +00:00
Fix cleanup when deleting mode
This commit is contained in:
parent
96f0e82688
commit
cacea26e3f
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue