mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Contect selector: fix ESM date and version data encoding/decoding (#7764)
This commit is contained in:
parent
961c53f1c4
commit
327fafe739
1 changed files with 4 additions and 3 deletions
|
@ -51,7 +51,8 @@ QByteArray ContentSelectorModel::EsmFile::encodedData() const
|
||||||
QByteArray encodedData;
|
QByteArray encodedData;
|
||||||
QDataStream stream(&encodedData, QIODevice::WriteOnly);
|
QDataStream stream(&encodedData, QIODevice::WriteOnly);
|
||||||
|
|
||||||
stream << mFileName << mAuthor << mVersion << mModified.toString() << mPath << mDescription << mGameFiles;
|
stream << mFileName << mAuthor << mVersion << mModified.toString(Qt::ISODate) << mPath << mDescription
|
||||||
|
<< mGameFiles;
|
||||||
|
|
||||||
return encodedData;
|
return encodedData;
|
||||||
}
|
}
|
||||||
|
@ -113,11 +114,11 @@ void ContentSelectorModel::EsmFile::setFileProperty(const FileProperty prop, con
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileProperty_Format:
|
case FileProperty_Format:
|
||||||
mVersion = value.toInt();
|
mVersion = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileProperty_DateModified:
|
case FileProperty_DateModified:
|
||||||
mModified = QDateTime::fromString(value);
|
mModified = QDateTime::fromString(value, Qt::ISODate);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileProperty_FilePath:
|
case FileProperty_FilePath:
|
||||||
|
|
Loading…
Reference in a new issue