diff --git a/src/GUI/UpdateChecker.cxx b/src/GUI/UpdateChecker.cxx index ec74764..d14aad6 100644 --- a/src/GUI/UpdateChecker.cxx +++ b/src/GUI/UpdateChecker.cxx @@ -94,11 +94,15 @@ UpdateChecker::UpdateChecker(QObject *parent) : QObject(parent) return; } + + const QDate n = QDate::currentDate().addDays(0); + settings.setValue("next-update-check", n); + if (nextCheck <= QDate::currentDate()) { - //zhongjin - SG_LOG(SG_IO, SG_WARN, "UpdateChecker()" ); + //zhongjin + SG_LOG(SG_IO, SG_WARN, "UpdateChecker()" ); // start a check auto http = globals->get_subsystem(); @@ -111,6 +115,9 @@ UpdateChecker::UpdateChecker(QObject *parent) : QObject(parent) // definitiely want to ensure HTTPS for this. std::string uri = "https://download.flightgear.org/builds/" + _majorMinorVersion + "/updates.xml"; + + SG_LOG(SG_IO, SG_WARN, "UpdateChecker() " << uri ); + m_request = new UpdateXMLRequest(this, uri); http->makeRequest(m_request); } else {