summaryrefslogtreecommitdiffstats
path: root/core/imagedownloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/imagedownloader.cpp')
-rw-r--r--core/imagedownloader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp
index 2cf5e5d33..18ecd5cd6 100644
--- a/core/imagedownloader.cpp
+++ b/core/imagedownloader.cpp
@@ -121,7 +121,8 @@ static std::pair<QImage, bool> getHashedImage(const QString &filename, bool tryD
static QImage renderIcon(const char *id, int size)
{
- QImage res(size, size, QImage::Format_ARGB32);
+ QImage res(size, size, QImage::Format_RGB32);
+ res.fill(Qt::white);
QSvgRenderer svg{QString(id)};
QPainter painter(&res);
svg.render(&painter);