diff --git a/src/calibre/gui2/main.ui b/src/calibre/gui2/main.ui index 1abaf53d3c..b4bafc3b79 100644 --- a/src/calibre/gui2/main.ui +++ b/src/calibre/gui2/main.ui @@ -329,7 +329,7 @@ 0 - + @@ -389,37 +389,43 @@ - - - - 100 - 10 - - - - true - - - true - - - false - - - QAbstractItemView::DragDrop - - - true - - - QAbstractItemView::SelectRows - - - false - - - false - + + + + + + + 100 + 10 + + + + true + + + true + + + false + + + QAbstractItemView::DragDrop + + + true + + + QAbstractItemView::SelectRows + + + false + + + false + + + + diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 7d258608d0..6a1a508891 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -597,7 +597,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): self.cover_flow = CoverFlow(height=cfh, text_height=text_height) self.cover_flow.setVisible(False) if not config['separate_cover_flow']: - self.library.layout().addWidget(self.cover_flow) + self.cb_layout.addWidget(self.cover_flow) self.cover_flow.currentChanged.connect(self.sync_listview_to_cf) self.library_view.selectionModel().currentRowChanged.connect( self.sync_cf_to_listview) @@ -638,7 +638,6 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): self.connect(self.scheduler, SIGNAL('start_recipe_fetch(PyQt_PyObject)'), self.download_scheduled_recipe, Qt.QueuedConnection) - self.library_view.verticalHeader().sectionClicked.connect(self.view_specific_book) for view in ('library', 'memory', 'card_a', 'card_b'): view = getattr(self, view+'_view') @@ -923,6 +922,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI): index = m.index(row, 0) if self.library_view.currentIndex().row() != row and index.isValid(): self.cover_flow_sync_flag = False + self.library_view.scrollTo(index) sm = self.library_view.selectionModel() sm.select(index, sm.ClearAndSelect|sm.Rows) self.library_view.setCurrentIndex(index)