mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Protect access to image hash dictionaries with lock
Otherwise we step on our own feet when downloading several images, like after import from divelogs.de with many linked images. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cae99471ad
commit
2e6588dc0e
2 changed files with 21 additions and 1 deletions
|
@ -77,6 +77,8 @@ void ImageDownloader::saveImage(QNetworkReply *reply)
|
|||
|
||||
void loadPicture(struct picture *picture, bool fromHash)
|
||||
{
|
||||
if (!picture)
|
||||
return;
|
||||
ImageDownloader download(picture);
|
||||
download.load(fromHash);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue