mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't show an error if you fail to open the cloud storage
The lower level functions will already report that things didn't connect successfully, no reason to repeat it here (which then exposes the git URL). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
abde615c1c
commit
df255e2573
3 changed files with 15 additions and 2 deletions
10
qthelper.cpp
10
qthelper.cpp
|
@ -1038,6 +1038,16 @@ int getCloudURL(QString &filename)
|
|||
return 0;
|
||||
}
|
||||
|
||||
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)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
extern "C" bool getProxyString(char **buffer)
|
||||
{
|
||||
if (prefs.proxy_type == QNetworkProxy::HttpProxy) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue