Improved code documentation

This commit is contained in:
Uwe Kindler 2017-03-29 11:09:05 +02:00
parent a3ff1ae8ee
commit fd76e9e62b
2 changed files with 3 additions and 1 deletions

View File

@ -452,7 +452,6 @@ bool DockContainerWidgetPrivate::restoreDockArea(QDataStream& stream,
}
CreatedWidget = DockArea;
DockAreas.append(DockArea);
//DockArea->setCurrentIndex(CurrentIndex);
return true;
}

View File

@ -361,6 +361,9 @@ bool CDockManager::restoreState(const QByteArray &state, int version)
}
}
// Now all dock areas are properly restored and we setup the index of
// The dock areas because the previous toggleView() action has changed
// the dock area index
for (auto DockContainer : d->Containers)
{
for (int i = 0; i < DockContainer->dockAreaCount(); ++i)