summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/imagedownloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp
index c3024764c..9a8463b7e 100644
--- a/core/imagedownloader.cpp
+++ b/core/imagedownloader.cpp
@@ -56,7 +56,7 @@ void ImageDownloader::saveImage(QNetworkReply *reply, bool &success)
{
success = false;
QByteArray imageData = reply->readAll();
- QImage image = QImage();
+ QImage image;
image.loadFromData(imageData);
if (image.isNull())
return;