Properly persist the AllowedAreas state of CDockAreaWidget

This commit is contained in:
Uwe Kindler
2020-08-17 23:50:37 +02:00
parent edc799bc54
commit 11aec65967
2 changed files with 14 additions and 1 deletions

View File

@@ -942,6 +942,11 @@ bool DockContainerWidgetPrivate::restoreDockArea(CDockingStateReader& s,
if (!Testing)
{
DockArea = new CDockAreaWidget(DockManager, _this);
const auto AllowedAreasAttribute = s.attributes().value("AllowedAreas");
if (!AllowedAreasAttribute.isEmpty())
{
DockArea->setAllowedAreas((DockWidgetArea)AllowedAreasAttribute.toInt(nullptr, 16));
}
}
while (s.readNextStartElement())