1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00

remove dubious GNUC and rename 9x refrences

This commit is contained in:
Arne Schwabe 2017-05-13 13:03:47 +02:00
parent 355f4b5f92
commit 5825a2ec2c

View file

@ -294,13 +294,12 @@ void MainWindow::checkForCompanionUpdateFinished(QNetworkReply * reply)
if (version.isNull())
return onUpdatesError();
int vnum = version2index(version);
int webVersion = version2index(version);
QString c9xversion = QString(VERSION);
int c9xver = version2index(c9xversion);
int ownVersion = version2index(VERSION);
if (c9xver < vnum) {
#if defined WIN32 || !defined __GNUC__ || defined __APPLE__
if (ownVersion < webVersion) {
#if defined WIN32 || defined __APPLE__
int ret = QMessageBox::question(this, "Companion", tr("A new version of Companion is available (version %1)<br>"
"Would you like to download it?").arg(version) ,
QMessageBox::Yes | QMessageBox::No);