mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:43:31 +02:00
Dont attempt to read NULL MSG.lParam
This commit is contained in:
parent
0eb829041d
commit
2d4b424dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -1621,7 +1621,7 @@ def nativeEventFilter(self, eventType, message):
|
|||
if eventType == b"windows_generic_MSG":
|
||||
msg = ctypes.wintypes.MSG.from_address(message.__int__())
|
||||
# https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-settingchange
|
||||
if msg.message == 0x001A: # WM_SETTINGCHANGE
|
||||
if msg.message == 0x001A and msg.lParam: # WM_SETTINGCHANGE
|
||||
if ctypes.wstring_at(msg.lParam) == 'ImmersiveColorSet':
|
||||
QApplication.instance().check_for_windows_palette_change()
|
||||
# prevent Qt from handling this event
|
||||
|
|
|
|||
Loading…
Reference in a new issue