1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

Previous version-indexes were not anymore supported

This commit is contained in:
bsongis 2015-07-23 18:42:39 +02:00
parent 98b4d26676
commit 1b6f34069a

View file

@ -1048,6 +1048,13 @@ QString index2version(int index)
}
return result;
}
else if (index >= 19900) {
int revision = index % 100;
index /= 100;
int minor = index % 100;
int major = index / 100;
return QString("%1.%2.%3").arg(major).arg(minor).arg(revision);
}
else {
return QString();
}