1
0
Fork 0

free MHDetachedWindow on reattach

This commit is contained in:
dad 2023-09-22 11:58:01 -06:00
parent c65c956f85
commit 335d94d2d9
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ void MHTabWidget::AttachTab(QWidget* parent)
// Move the tab back to the previous index
if(detachedWidget->mPreviousIndex >= 0)
mTabBar->moveTab(newIndex, detachedWidget->mPreviousIndex);
//Free MHDetachedWindow
delete detachedWidget;
}
// Convert a tab to an external window