free MHDetachedWindow on reattach
parent
c65c956f85
commit
335d94d2d9
|
@ -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