mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
I have no idea why this happens, but...
Fix #1700191 [Error occasionally pops up when pressing Edit Medata](https://bugs.launchpad.net/calibre/+bug/1700191)
This commit is contained in:
parent
13d6a6c6ec
commit
4cb057f8a5
@ -702,7 +702,8 @@ class Editor(QWidget): # {{{
|
||||
|
||||
self.toolbar2.addAction(self.editor.action_block_style)
|
||||
w = self.toolbar2.widgetForAction(self.editor.action_block_style)
|
||||
w.setPopupMode(w.InstantPopup)
|
||||
if hasattr(w, 'setPopupMode'):
|
||||
w.setPopupMode(w.InstantPopup)
|
||||
self.toolbar2.addAction(self.editor.action_insert_link)
|
||||
# }}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user