Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/DockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,12 @@ bool DockManagerPrivate::restoreStateFromXml(const QByteArray &state, int versi
{
CFloatingDockContainer* floatingWidget = FloatingWidgets[i];
if (!floatingWidget) continue;
_this->removeDockContainer(floatingWidget->dockContainer());
// Use removeFromDockManager() (introduced in upstream commit 544c624) instead
// of removeDockContainer() so the container's back-pointer to the manager is
// cleared. Otherwise ~CDockContainerWidget() (called when deleteLater() fires)
// would try to remove this container a second time, tripping the
// Q_ASSERT(removed == 1) check in CDockManager::removeDockContainer().
floatingWidget->dockContainer()->removeFromDockManager();
floatingWidget->deleteLater();
}
}
Expand Down