diff options
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 39c259992..9d907edf9 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -1038,7 +1038,7 @@ int getCloudURL(QString &filename) free(prefs.cloud_storage_email_encoded); prefs.cloud_storage_email_encoded = strdup(qPrintable(email)); } - filename = QString("https://cloud.subsurface-divelog.org/git/%1[%1]").arg(email); + filename = QString(QString(prefs.cloud_git_url) + "/%1[%1]").arg(email); return 0; } @@ -1047,7 +1047,7 @@ extern "C" bool isCloudUrl(const char *filename) QString email = QString(prefs.cloud_storage_email); email.replace(QRegularExpression("[^a-zA-Z0-9@._+-]"), ""); if (!email.isEmpty() && - QString("https://cloud.subsurface-divelog.org/git/%1[%1]").arg(email) == filename) + QString(QString(prefs.cloud_git_url) + "/%1[%1]").arg(email) == filename) return true; return false; } |