mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:13:15 +02:00
Fix #990881 (Shift-click after using cover browser makes wrong selection)
This commit is contained in:
parent
42a13d1503
commit
0d506a3ee7
1 changed files with 1 additions and 4 deletions
|
|
@ -316,10 +316,7 @@ def cover_flow_do_sync(self):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue