From 4428388b3febf8555b1aa47ac770285cf6ff3cc7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 30 Dec 2021 02:25:47 +0100 Subject: [PATCH] Convert blurhash image format on worker thread Not only should this prevent hickups, it also fixes a potential crash. --- src/BlurhashProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }