diff --git a/src/GUI/UpdateChecker.cxx b/src/GUI/UpdateChecker.cxx index 335951b..8aeb21e 100644 --- a/src/GUI/UpdateChecker.cxx +++ b/src/GUI/UpdateChecker.cxx @@ -114,7 +114,7 @@ UpdateChecker::UpdateChecker(QObject *parent) : QObject(parent) _majorMinorVersion = versionParts[0] + "." + versionParts[1]; // definitiely want to ensure HTTPS for this. - std::string uri = "https://download.flightgear.org/builds/" + _majorMinorVersion + "/updates.xml"; + std::string uri = "https://download.jingweiht.com/builds/" + _majorMinorVersion + "/updates.xml"; SG_LOG(SG_IO, SG_WARN, "UpdateChecker() " << uri ); @@ -166,10 +166,11 @@ void UpdateChecker::receivedUpdateXML(QByteArray body) SG_LOG(SG_IO, SG_WARN, "UpdateChecker() " << buffer ); - const QDate n = QDate::currentDate().addDays(7); - settings.setValue("next-update-check", n); +// const QDate n = QDate::currentDate().addDays(7); +// settings.setValue("next-update-check", n); const std::string newMajorVersion = props->getStringValue("current-major-release"); + if (simgear::strutils::compare_versions(FLIGHTGEAR_VERSION, newMajorVersion) < 0) { // we have a newer version! _currentUpdateVersion = QString::fromStdString(newMajorVersion);