From 75af60f327a6f19f283d12000d24a86aff929e8b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 1 Jan 2015 12:02:27 -0800 Subject: Use the canonical version when checking for updates This is in the form major.minor.subminor.commit_nr and makes it easy for the backend process on the server to figure out what to do. This changes the query argument from ver to version so the backend knows that this is now a canonical version. Signed-off-by: Dirk Hohndel --- qt-ui/updatemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt-ui/updatemanager.cpp b/qt-ui/updatemanager.cpp index a181f34fa..57b1c6db5 100644 --- a/qt-ui/updatemanager.cpp +++ b/qt-ui/updatemanager.cpp @@ -23,8 +23,8 @@ void UpdateManager::checkForUpdates() os = "unknown"; #endif - QString version = VERSION_STRING; - QString url = QString("http://subsurface-divelog.org/updatecheck.html?os=%1&ver=%2").arg(os, version); + QString version = CANONICAL_VERSION_STRING; + QString url = QString("http://subsurface-divelog.org/updatecheck.html?os=%1&version=%2").arg(os, version); QNetworkRequest request; request.setUrl(url); request.setRawHeader("Accept", "text/xml"); -- cgit v1.2.3-70-g09d2