mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
remove dubious GNUC and rename 9x refrences
This commit is contained in:
parent
355f4b5f92
commit
5825a2ec2c
1 changed files with 4 additions and 5 deletions
|
@ -294,13 +294,12 @@ void MainWindow::checkForCompanionUpdateFinished(QNetworkReply * reply)
|
||||||
if (version.isNull())
|
if (version.isNull())
|
||||||
return onUpdatesError();
|
return onUpdatesError();
|
||||||
|
|
||||||
int vnum = version2index(version);
|
int webVersion = version2index(version);
|
||||||
|
|
||||||
QString c9xversion = QString(VERSION);
|
int ownVersion = version2index(VERSION);
|
||||||
int c9xver = version2index(c9xversion);
|
|
||||||
|
|
||||||
if (c9xver < vnum) {
|
if (ownVersion < webVersion) {
|
||||||
#if defined WIN32 || !defined __GNUC__ || defined __APPLE__
|
#if defined WIN32 || defined __APPLE__
|
||||||
int ret = QMessageBox::question(this, "Companion", tr("A new version of Companion is available (version %1)<br>"
|
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) ,
|
"Would you like to download it?").arg(version) ,
|
||||||
QMessageBox::Yes | QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue