aboutsummaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-10 17:40:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-19 12:51:01 -0700
commitc5eb806adb345e24b13ac4bf106cceb1dc9d3431 (patch)
treea071c9dede0640e23dd8032e6b1d0863d85b983e /core/qthelper.cpp
parentda6395a4a8b68978caf47f98b48a82fabbe1dd20 (diff)
downloadsubsurface-c5eb806adb345e24b13ac4bf106cceb1dc9d3431.tar.gz
cloudstorage: some cleanup of cloud url handling
We know the preference is never empty, so stop testing for this. But don't maintain two different preferences with basically the same content. Instead add the '/git' suffix where needed and keep this all in one place. Simplify the extraction of the branch name from the cloud URL. Also a typo fix and a new comment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 702ee965d..6678cc87f 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1442,9 +1442,9 @@ int getCloudURL(QString &filename)
free((void *)prefs.cloud_storage_email_encoded);
prefs.cloud_storage_email_encoded = copy_qstring(email);
}
- filename = QString(QString(prefs.cloud_git_url) + "/%1[%1]").arg(email);
+ filename = QString(QString(prefs.cloud_base_url) + "git/%1[%1]").arg(email);
if (verbose)
- qDebug() << "cloud URL set as" << filename;
+ qDebug() << "returning cloud URL" << filename;
return 0;
}