summaryrefslogtreecommitdiffstats
path: root/core/checkcloudconnection.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 22:54:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-05 23:39:54 -0700
commit922c945f5a5199fb27f9b68272157a238d2c371e (patch)
tree33edf05a84e345454b8d59adc7a0aae29e51c8e8 /core/checkcloudconnection.cpp
parent3555cadb77ca25fcf4883a5f1506e83222d6b29d (diff)
downloadsubsurface-922c945f5a5199fb27f9b68272157a238d2c371e.tar.gz
QML UI: more hacking around with git progress reporting
I gave up on the magic numbers and instead report simply linear progress. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/checkcloudconnection.cpp')
-rw-r--r--core/checkcloudconnection.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp
index f29d971ba..ef2e516e8 100644
--- a/core/checkcloudconnection.cpp
+++ b/core/checkcloudconnection.cpp
@@ -51,17 +51,18 @@ bool CheckCloudConnection::checkServer()
mgr->deleteLater();
if (verbose > 1)
qWarning() << "Cloud storage: successfully checked connection to cloud server";
- git_storage_update_progress(last_git_storage_update_val + 1, "successfully checked cloud connection");
+ git_storage_update_progress(false, "successfully checked cloud connection");
return true;
}
} else if (seconds < 5) {
- git_storage_update_progress(last_git_storage_update_val + 1, "waited 1 sec for cloud connection");
+ QString text = QString("waited %1 sec for cloud connetion").arg(seconds);
+ git_storage_update_progress(false, qPrintable(text));
} else {
disconnect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
reply->abort();
}
}
- git_storage_update_progress(last_git_storage_update_val + 1, "cloud connection failed");
+ git_storage_update_progress(false, "cloud connection failed");
if (verbose)
qDebug() << "connection test to cloud server failed" <<
reply->error() << reply->errorString() <<