mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:53:38 +02:00
Fix regression in calibre 4 causing shortcuts to not be displayed in context menus on windows because of stupidity from Qt https://bugreports.qt.io/browse/QTBUG-61181
This commit is contained in:
parent
0dc03ed11e
commit
abd6492691
1 changed files with 3 additions and 0 deletions
|
|
@ -881,6 +881,9 @@ def __init__(self, args, force_calibre_style=False, override_program_name=None,
|
|||
QApplication.setDesktopFileName(override_program_name)
|
||||
QApplication.setAttribute(Qt.AA_ShareOpenGLContexts, True) # needed for webengine
|
||||
QApplication.__init__(self, qargs)
|
||||
sh = self.styleHints()
|
||||
if hasattr(sh, 'setShowShortcutsInContextMenus'):
|
||||
sh.setShowShortcutsInContextMenus(True)
|
||||
if isosx:
|
||||
plugins['cocoa'][0].disable_cocoa_ui_elements()
|
||||
self.setAttribute(Qt.AA_UseHighDpiPixmaps)
|
||||
|
|
|
|||
Loading…
Reference in a new issue