mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1905479 [Edit Metadata: Non-default layout and custom longtext column breaks formatting shortcuts](https://bugs.launchpad.net/calibre/+bug/1905479)
Yet again
This commit is contained in:
parent
83ced64197
commit
1e5b4d373d
@ -260,6 +260,7 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{
|
||||
|
||||
def r(name, icon, text, checkable=False, shortcut=None):
|
||||
ac = QAction(QIcon(I(icon + '.png')), text, self)
|
||||
ac.setShortcutContext(Qt.ShortcutContext.WidgetWithChildrenShortcut)
|
||||
if checkable:
|
||||
ac.setCheckable(checkable)
|
||||
setattr(self, 'action_'+name, ac)
|
||||
|
Loading…
x
Reference in New Issue
Block a user