From 1d866e0b6bcda83652bf2f754bee225869d085ff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 16 Dec 2022 10:47:06 +0530 Subject: [PATCH] Windows: Forgot to convert QImage to QPixmap when converting HICON --- src/calibre/utils/open_with/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/open_with/windows.py b/src/calibre/utils/open_with/windows.py index b5de257c64..2a59c93890 100644 --- a/src/calibre/utils/open_with/windows.py +++ b/src/calibre/utils/open_with/windows.py @@ -16,7 +16,7 @@ ICON_SIZE = 256 def hicon_to_pixmap(hicon): - return progress_indicator.image_from_hicon(int(hicon)) + return QPixmap.fromImage(progress_indicator.image_from_hicon(int(hicon))) def pixmap_to_data(pixmap):