Skip to content

Commit 2e8137a

Browse files
Fixed setting of CDockingStateReader file version - use internal file version instead of user file version
1 parent bcb7118 commit 2e8137a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DockManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ bool DockManagerPrivate::restoreStateFromXml(const QByteArray &state, int versi
249249
{
250250
return false;
251251
}
252+
s.setFileVersion(v);
252253

253254
ADS_PRINT(s.attributes().value("UserVersion"));
254255
// 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
262263
}
263264
}
264265

265-
s.setFileVersion(v);
266266
bool Result = true;
267267
#ifdef ADS_DEBUG_PRINT
268268
int DockContainers = s.attributes().value("Containers").toInt();

0 commit comments

Comments
 (0)