Skip to content

Commit c08d916

Browse files
author
Eric Wong
authored
Update FloatingDockContainer.cpp
saveState() may use the floatingDockContainer to be deleted
1 parent ccbde05 commit c08d916

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/FloatingDockContainer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,10 @@ void CFloatingDockContainer::hideAndDeleteLater()
11331133
d->AutoHideChildren = false;
11341134
hide();
11351135
deleteLater();
1136+
if (d->DockManager)
1137+
{
1138+
d->DockManager->removeFloatingWidget(this);
1139+
}
11361140
}
11371141

11381142
//============================================================================

0 commit comments

Comments
 (0)