mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix no QMenu.triggered[QAction] signal overload in PyQt5
Replace with simple triggered as there is only a single signal, that sends a QAction.
This commit is contained in:
parent
857b9fa205
commit
fc70edee09
@ -136,7 +136,7 @@ class EbookViewer(MainWindow):
|
|||||||
_('Clear list of recently opened books'), self)
|
_('Clear list of recently opened books'), self)
|
||||||
self.clear_recent_history_action.triggered.connect(self.clear_recent_history)
|
self.clear_recent_history_action.triggered.connect(self.clear_recent_history)
|
||||||
self.build_recent_menu()
|
self.build_recent_menu()
|
||||||
self.open_history_menu.triggered[QAction].connect(self.open_recent)
|
self.open_history_menu.triggered.connect(self.open_recent)
|
||||||
|
|
||||||
for x in ('tool_bar', 'tool_bar2'):
|
for x in ('tool_bar', 'tool_bar2'):
|
||||||
x = getattr(self, x)
|
x = getattr(self, x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user