fix crash when sometimes restoring state

This commit is contained in:
Syarif Fakhri 2022-09-09 15:38:31 +08:00
parent 3ef1ac97c2
commit 883d5b5198

View File

@ -432,8 +432,8 @@ bool DockManagerPrivate::restoreState(const QByteArray& State, int version)
// Hide updates of floating widgets from use // Hide updates of floating widgets from use
hideFloatingWidgets(); hideFloatingWidgets();
_this->deleteOverlayWidgets();
markDockWidgetsDirty(); markDockWidgetsDirty();
_this->deleteOverlayWidgets();
if (!restoreStateFromXml(state, version)) if (!restoreStateFromXml(state, version))
{ {