mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cloud storage: make first connect a post
But don't wait for it to succeed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fe8c2ba6ce
commit
669e2bf9fe
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "pref.h"
|
||||
#include "helpers.h"
|
||||
#include "subsurfacewebservices.h"
|
||||
|
||||
#include "checkcloudconnection.h"
|
||||
|
||||
|
|
@ -29,6 +30,9 @@ bool CheckCloudConnection::checkServer()
|
|||
request.setRawHeader("Accept", "text/plain");
|
||||
request.setRawHeader("User-Agent", getUserAgent().toUtf8());
|
||||
request.setUrl(QString(prefs.cloud_base_url) + TEAPOT);
|
||||
// now set up an authentication test
|
||||
CloudStorageAuthenticate *csa = new CloudStorageAuthenticate(0);
|
||||
csa->backend(prefs.cloud_storage_email, prefs.cloud_storage_password);
|
||||
QNetworkAccessManager *mgr = new QNetworkAccessManager();
|
||||
reply = mgr->get(request);
|
||||
connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue