free MHDetachedWindow on reattach
This commit is contained in:
parent
c65c956f85
commit
335d94d2d9
|
@ -95,6 +95,9 @@ void MHTabWidget::AttachTab(QWidget* parent)
|
||||||
// Move the tab back to the previous index
|
// Move the tab back to the previous index
|
||||||
if(detachedWidget->mPreviousIndex >= 0)
|
if(detachedWidget->mPreviousIndex >= 0)
|
||||||
mTabBar->moveTab(newIndex, detachedWidget->mPreviousIndex);
|
mTabBar->moveTab(newIndex, detachedWidget->mPreviousIndex);
|
||||||
|
|
||||||
|
//Free MHDetachedWindow
|
||||||
|
delete detachedWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert a tab to an external window
|
// Convert a tab to an external window
|
||||||
|
|
Loading…
Reference in New Issue