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:
Kovid Goyal 2021-10-19 14:35:22 +05:30
parent 83ced64197
commit 1e5b4d373d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)