Commit 85abd425 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

By default we have a version2

parent 8e16a8d2
......@@ -321,13 +321,13 @@ void Utils::addVersion(KZip *archive)
int Utils::archiveVersion(KZip *archive)
{
const KArchiveEntry *informationFile = archive->directory()->entry(Utils::infoPath() + QStringLiteral("VERSION_1"));
const KArchiveEntry *informationFile = archive->directory()->entry(Utils::infoPath() + QStringLiteral("VERSION_2"));
if (informationFile && informationFile->isFile()) {
return 1;
return 2;
}
informationFile = archive->directory()->entry(Utils::infoPath() + QStringLiteral("VERSION_2"));
informationFile = archive->directory()->entry(Utils::infoPath() + QStringLiteral("VERSION_1"));
if (informationFile && informationFile->isFile()) {
return 2;
return 1;
}
//TODO add more version when new version
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment