|
|
@ -825,7 +825,6 @@ bool QGCApplication::isInternetAvailable() |
|
|
|
|
|
|
|
|
|
|
|
void QGCApplication::_checkForNewVersion() |
|
|
|
void QGCApplication::_checkForNewVersion() |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifndef __mobile__ |
|
|
|
|
|
|
|
if (!_runningUnitTests) { |
|
|
|
if (!_runningUnitTests) { |
|
|
|
if (_parseVersionText(applicationVersion(), _majorVersion, _minorVersion, _buildVersion)) { |
|
|
|
if (_parseVersionText(applicationVersion(), _majorVersion, _minorVersion, _buildVersion)) { |
|
|
|
QString versionCheckFile = toolbox()->corePlugin()->stableVersionCheckFileUrl(); |
|
|
|
QString versionCheckFile = toolbox()->corePlugin()->stableVersionCheckFileUrl(); |
|
|
@ -836,15 +835,10 @@ void QGCApplication::_checkForNewVersion() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFile*/, QString localFile, QString errorMsg) |
|
|
|
void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFile*/, QString localFile, QString errorMsg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef __mobile__ |
|
|
|
|
|
|
|
Q_UNUSED(localFile) |
|
|
|
|
|
|
|
Q_UNUSED(errorMsg) |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
if (errorMsg.isEmpty()) { |
|
|
|
if (errorMsg.isEmpty()) { |
|
|
|
QFile versionFile(localFile); |
|
|
|
QFile versionFile(localFile); |
|
|
|
if (versionFile.open(QIODevice::ReadOnly)) { |
|
|
|
if (versionFile.open(QIODevice::ReadOnly)) { |
|
|
@ -867,7 +861,6 @@ void QGCApplication::_qgcCurrentStableVersionDownloadComplete(QString /*remoteFi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sender()->deleteLater(); |
|
|
|
sender()->deleteLater(); |
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool QGCApplication::_parseVersionText(const QString& versionString, int& majorVersion, int& minorVersion, int& buildVersion) |
|
|
|
bool QGCApplication::_parseVersionText(const QString& versionString, int& majorVersion, int& minorVersion, int& buildVersion) |
|
|
|