mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 21:05:26 +03:00
Previous version-indexes were not anymore supported
This commit is contained in:
parent
98b4d26676
commit
1b6f34069a
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue