mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed setting of CDockingStateReader file version - use internal file version instead of user file version
This commit is contained in:
parent
bcb7118710
commit
2e8137ad85
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user