Fixed setting of CDockingStateReader file version - use internal file version instead of user file version

This commit is contained in:
Uwe Kindler 2020-06-05 07:39:51 +02:00
parent bcb7118710
commit 2e8137ad85

View File

@ -249,6 +249,7 @@ bool DockManagerPrivate::restoreStateFromXml(const QByteArray &state, int versi
{ {
return false; return false;
} }
s.setFileVersion(v);
ADS_PRINT(s.attributes().value("UserVersion")); ADS_PRINT(s.attributes().value("UserVersion"));
// Older files do not support UserVersion but we still want to load them so // Older files do not support UserVersion but we still want to load them so
@ -262,7 +263,6 @@ bool DockManagerPrivate::restoreStateFromXml(const QByteArray &state, int versi
} }
} }
s.setFileVersion(v);
bool Result = true; bool Result = true;
#ifdef ADS_DEBUG_PRINT #ifdef ADS_DEBUG_PRINT
int DockContainers = s.attributes().value("Containers").toInt(); int DockContainers = s.attributes().value("Containers").toInt();