Clear LastAddedAreaCache when restoring

This commit is contained in:
Tibo Clausen 2019-05-15 16:13:55 +01:00
parent 5ee94d7602
commit e2c5204d00

View File

@ -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)