Fixed chrash on restore state when accessing FloatingWidget that has been marked for deletion (deleteLater())

This commit is contained in:
Uwe Kindler 2018-10-11 13:30:12 +02:00
parent fc04aa2411
commit 9fec2bd515

View File

@ -208,6 +208,7 @@ bool DockManagerPrivate::restoreStateFromXml(const QByteArray &state, int versi
for (int i = 0; i < DeleteCount; ++i) for (int i = 0; i < DeleteCount; ++i)
{ {
FloatingWidgets[FloatingWidgetIndex + i]->deleteLater(); FloatingWidgets[FloatingWidgetIndex + i]->deleteLater();
_this->removeDockContainer(FloatingWidgets[FloatingWidgetIndex + i]->dockContainer());
} }
} }