Merge pull request #3225 from HayFieldLaps/tabwidget-delete-on-close
free MHDetachedWindow on reattach
This commit is contained in:
commit
51e697b726
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue