1
0
Fork 0

Merge pull request #3225 from HayFieldLaps/tabwidget-delete-on-close

free MHDetachedWindow on reattach
This commit is contained in:
Duncan Ogilvie 2023-10-01 12:49:21 +02:00 committed by GitHub
commit 51e697b726
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
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