From 8a0df2820cee900a44849d84eaa334954e3c9e36 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Jul 2022 07:45:48 +0530 Subject: [PATCH] Restore behavior of not allowing override of application icon It got lost in the change to QIcon.ic --- src/calibre/gui2/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index d48ca09dff..8e7b7396df 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -132,7 +132,7 @@ def init_qt(args): # Ancient broken VNC servers cannot handle icons of size greater than 256 # https://www.mobileread.com/forums/showthread.php?t=278447 ic = 'lt.png' if is_x11 else 'library.png' - app.setWindowIcon(QIcon.ic(ic)) + app.setWindowIcon(QIcon(I(ic, allow_user_override=False))) return app, opts, args