Skip to content

Commit e2c5204

Browse files
committed
Clear LastAddedAreaCache when restoring
1 parent 5ee94d7 commit e2c5204

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DockContainerWidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,7 @@ bool CDockContainerWidget::restoreState(QXmlStreamReader& s, bool Testing)
12891289
{
12901290
d->VisibleDockAreaCount = -1;// invalidate the dock area count
12911291
d->DockAreas.clear();
1292+
std::fill(std::begin(d->LastAddedAreaCache),std::end(d->LastAddedAreaCache), nullptr);
12921293
}
12931294

12941295
if (IsFloating)

0 commit comments

Comments
 (0)