From e2c5204d00f9003cdca46ef4bb9148f4beafd9b7 Mon Sep 17 00:00:00 2001 From: Tibo Clausen Date: Wed, 15 May 2019 16:13:55 +0100 Subject: [PATCH] Clear LastAddedAreaCache when restoring --- src/DockContainerWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 15b246d..3539406 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1289,6 +1289,7 @@ bool CDockContainerWidget::restoreState(QXmlStreamReader& s, bool Testing) { d->VisibleDockAreaCount = -1;// invalidate the dock area count d->DockAreas.clear(); + std::fill(std::begin(d->LastAddedAreaCache),std::end(d->LastAddedAreaCache), nullptr); } if (IsFloating)