Fix #990881 (Shift-click after using cover browser makes wrong selection)

This commit is contained in:
Kovid Goyal 2012-04-29 10:08:45 +05:30
parent 42a13d1503
commit 0d506a3ee7

View File

@ -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()