summaryrefslogtreecommitdiffstats
path: root/qt-ui/updatemanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-01 12:02:27 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-01 12:08:57 -0800
commit75af60f327a6f19f283d12000d24a86aff929e8b (patch)
tree11ace357021e4e8ac665a534ce7b0d7855236d7f /qt-ui/updatemanager.cpp
parent3e6a721771595576ca50317aa1ea8c443fff9518 (diff)
downloadsubsurface-75af60f327a6f19f283d12000d24a86aff929e8b.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/updatemanager.cpp')
-rw-r--r--qt-ui/updatemanager.cpp4
1 files 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");