mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
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:
parent
7a682770ef
commit
6a8768ee26
4 changed files with 5 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "save-html.h"
|
||||
#include "subsurfacewebservices.h"
|
||||
#include "helpers.h"
|
||||
#include "subsurface-core/cloudstorage.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QSettings>
|
||||
|
@ -135,7 +136,7 @@ void DiveShareExportDialog::doUpload()
|
|||
if (ui->txtUID->text().length() != 0)
|
||||
request.setRawHeader("X-UID", ui->txtUID->text().toUtf8());
|
||||
|
||||
reply = WebServices::manager()->put(request, json_data);
|
||||
reply = manager()->put(request, json_data);
|
||||
|
||||
QObject::connect(reply, SIGNAL(finished()), this, SLOT(finishedSlot()));
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "dive.h"
|
||||
#include "subsurfacewebservices.h"
|
||||
#include "subsurface-core/prefs-macros.h"
|
||||
#include "subsurface-core/cloudstorage.h"
|
||||
|
||||
#include <QNetworkProxy>
|
||||
#include <QSettings>
|
||||
|
|
|
@ -20,8 +20,6 @@ public:
|
|||
void hideUpload();
|
||||
void hideDownload();
|
||||
|
||||
static QNetworkAccessManager *manager();
|
||||
|
||||
private
|
||||
slots:
|
||||
virtual void startDownload() = 0;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue