remove dubious GNUC and rename 9x refrences
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user