From 1059936d579fe26a0e034de83f0e75dd0536904d Mon Sep 17 00:00:00 2001 From: nowrep Date: Tue, 12 Feb 2013 16:52:30 +0100 Subject: [PATCH] [Updater] Send also OS type when checking for new version. --- src/lib/other/updater.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/other/updater.cpp b/src/lib/other/updater.cpp index 9110b28f5..8f12be86f 100644 --- a/src/lib/other/updater.cpp +++ b/src/lib/other/updater.cpp @@ -1,6 +1,6 @@ /* ============================================================ * QupZilla - WebKit based browser -* Copyright (C) 2010-2012 David Rosca +* Copyright (C) 2010-2013 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ * ============================================================ */ #include "updater.h" #include "qupzilla.h" +#include "qztools.h" #include "mainapplication.h" #include "tabwidget.h" #include "desktopnotificationsfactory.h" @@ -93,7 +94,11 @@ bool Updater::isBiggerThan_SpecialSymbol(QString one, QString two) void Updater::start() { - startDownloadingUpdateInfo(QUrl(QupZilla::WWWADDRESS + "/update.php?v=" + QupZilla::VERSION)); + QUrl url = QUrl(QString("%1/update.php?v=%2&os=%3").arg(QupZilla::WWWADDRESS, + QupZilla::VERSION, + QzTools::buildSystem())); + + startDownloadingUpdateInfo(url); } void Updater::startDownloadingUpdateInfo(const QUrl &url)