summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-30 02:25:47 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-30 02:25:47 +0100
commit4428388b3febf8555b1aa47ac770285cf6ff3cc7 (patch)
tree0c53d4e2e69ae1de8b37095148dffef4eb6915de /src
parentFix crash after sending image caused by the recent refactor (diff)
downloadnheko-4428388b3febf8555b1aa47ac770285cf6ff3cc7.tar.xz
Convert blurhash image format on worker thread
Not only should this prevent hickups, it also fixes a potential crash.
Diffstat (limited to 'src')
-rw-r--r--src/BlurhashProvider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlurhashProvider.cpp b/src/BlurhashProvider.cpp

index 9f66348c..85c61377 100644 --- a/src/BlurhashProvider.cpp +++ b/src/BlurhashProvider.cpp
@@ -38,5 +38,5 @@ BlurhashRunnable::run() (int)decoded.width * 3, QImage::Format_RGB888); - emit done(std::move(image)); + emit done(image.convertToFormat(QImage::Format_RGB32)); }