From 1b6f34069a013f176acbf6c104b16ff95f4a34bf Mon Sep 17 00:00:00 2001 From: bsongis Date: Thu, 23 Jul 2015 18:42:39 +0200 Subject: [PATCH] Previous version-indexes were not anymore supported --- companion/src/helpers.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/companion/src/helpers.cpp b/companion/src/helpers.cpp index 49b2ed865..49650c361 100644 --- a/companion/src/helpers.cpp +++ b/companion/src/helpers.cpp @@ -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(); }