diff options
Diffstat (limited to 'core/imagedownloader.cpp')
-rw-r--r-- | core/imagedownloader.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp index 57e76e2ff..62308fb5d 100644 --- a/core/imagedownloader.cpp +++ b/core/imagedownloader.cpp @@ -9,7 +9,7 @@ #include <QtConcurrent> -QUrl cloudImageURL(const char *hash) +static QUrl cloudImageURL(const char *hash) { return QUrl::fromUserInput(QString("https://cloud.subsurface-divelog.org/images/").append(hash)); } @@ -78,11 +78,11 @@ void ImageDownloader::saveImage(QNetworkReply *reply) } -QSet<QString> queuedPictures; -QMutex pictureQueueMutex; - -void loadPicture(struct picture *picture, bool fromHash) +static void loadPicture(struct picture *picture, bool fromHash) { + static QSet<QString> queuedPictures; + static QMutex pictureQueueMutex; + if (!picture) return; QMutexLocker locker(&pictureQueueMutex); |