summaryrefslogtreecommitdiffstats
path: root/qt-ui/updatemanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-23 09:09:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-23 09:31:08 -0800
commitddc01e39e7486434c6b814358ab4c77ea92c0776 (patch)
tree400ca390cff8070e5736eeeaf5d3f913b7d58b0a /qt-ui/updatemanager.cpp
parent62999c866f993bacadbbcad8aaf9a191f440dd1a (diff)
downloadsubsurface-ddc01e39e7486434c6b814358ab4c77ea92c0776.tar.gz
Move helper functions around
We had a ton of helper functions in qt-gui.cpp which really didn't make much sense. So I moved them all into qthelper.cpp. Also moved the UserAgent helper that didn't belong in the UpdateHandler to begin with - that's a generic helper used in many places... With this we can successfully build using cmake again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/updatemanager.cpp')
-rw-r--r--qt-ui/updatemanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/updatemanager.cpp b/qt-ui/updatemanager.cpp
index fbaa6ba3c..8a22400b9 100644
--- a/qt-ui/updatemanager.cpp
+++ b/qt-ui/updatemanager.cpp
@@ -1,5 +1,6 @@
#include "updatemanager.h"
#include "usersurvey.h"
+#include "helpers.h"
#include <QtNetwork>
#include <QMessageBox>
#include <QUuid>
@@ -53,7 +54,7 @@ void UpdateManager::checkForUpdates(bool automatic)
QNetworkRequest request;
request.setUrl(url);
request.setRawHeader("Accept", "text/xml");
- QString userAgent = UserSurvey::getUserAgent();
+ QString userAgent = getUserAgent();
request.setRawHeader("User-Agent", userAgent.toUtf8());
connect(SubsurfaceWebServices::manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection);
}