From 0d506a3ee7f24c7f3f6cbe060118b45c7f03c676 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 29 Apr 2012 10:08:45 +0530 Subject: [PATCH] Fix #990881 (Shift-click after using cover browser makes wrong selection) --- src/calibre/gui2/cover_flow.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/calibre/gui2/cover_flow.py b/src/calibre/gui2/cover_flow.py index bcbb3d7fbe..b7cebee2c0 100644 --- a/src/calibre/gui2/cover_flow.py +++ b/src/calibre/gui2/cover_flow.py @@ -316,10 +316,7 @@ class CoverFlowMixin(object): index = m.index(row, 0) if self.library_view.currentIndex().row() != row and index.isValid(): self.cover_flow_sync_flag = False - self.library_view.scroll_to_row(index.row()) - sm = self.library_view.selectionModel() - sm.select(index, sm.ClearAndSelect|sm.Rows) - self.library_view.setCurrentIndex(index) + self.library_view.select_rows([row], using_ids=False) except: import traceback traceback.print_exc()