Fix build breakage

Introduced in commit 31462f150dff ("We already have a QNetworkAcessManager
global, use it").

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-26 09:49:47 -08:00
parent 7a682770ef
commit 6a8768ee26
4 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,7 @@
#include "subsurfacewebservices.h"
#include "version.h"
#include "mainwindow.h"
#include "subsurface-core/cloudstorage.h"
UpdateManager::UpdateManager(QObject *parent) :
QObject(parent),
@ -58,7 +59,7 @@ void UpdateManager::checkForUpdates(bool automatic)
request.setRawHeader("Accept", "text/xml");
QString userAgent = getUserAgent();
request.setRawHeader("User-Agent", userAgent.toUtf8());
connect(SubsurfaceWebServices::manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection);
connect(manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection);
}
void UpdateManager::requestReceived()