mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #990881 (Shift-click after using cover browser makes wrong selection)
This commit is contained in:
parent
42a13d1503
commit
0d506a3ee7
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user