mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1924875 [Clicking X doesn't start auto scroll when Cover browser is shown in separate window](https://bugs.launchpad.net/calibre/+bug/1924875)
This commit is contained in:
parent
0b94f39d9a
commit
ef61093181
@ -240,8 +240,8 @@ class CBDialog(QDialog):
|
||||
|
||||
closed = pyqtSignal()
|
||||
|
||||
def __init__(self, parent, cover_flow):
|
||||
QDialog.__init__(self, parent)
|
||||
def __init__(self, gui, cover_flow):
|
||||
QDialog.__init__(self, gui)
|
||||
self._layout = QStackedLayout()
|
||||
self.setLayout(self._layout)
|
||||
self.setWindowTitle(_('Browse by covers'))
|
||||
@ -264,11 +264,17 @@ class CBDialog(QDialog):
|
||||
self.pre_fs_geom = None
|
||||
cover_flow.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
self.view_action = a = QAction(self)
|
||||
iactions = parent.iactions
|
||||
iactions = gui.iactions
|
||||
self.addAction(a)
|
||||
a.setShortcuts(list(iactions['View'].menuless_qaction.shortcuts())+
|
||||
[QKeySequence(Qt.Key.Key_Space)])
|
||||
a.triggered.connect(iactions['View'].menuless_qaction.trigger)
|
||||
|
||||
self.auto_scroll_action = a = QAction(self)
|
||||
a.setShortcuts(list(iactions['Autoscroll Books'].menuless_qaction.shortcuts()))
|
||||
self.addAction(a)
|
||||
a.triggered.connect(iactions['Autoscroll Books'].menuless_qaction.trigger)
|
||||
|
||||
self.sd_action = a = QAction(self)
|
||||
self.addAction(a)
|
||||
a.setShortcuts(list(iactions['Send To Device'].
|
||||
|
Loading…
x
Reference in New Issue
Block a user