Skip to content

Commit

Permalink
Move "indices" closer to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Apr 20, 2015
1 parent c15c803 commit 42c61e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/wtracktableview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ void WTrackTableView::slotGuiTick50ms(double) {
// Show the currently selected track in the large cover art view. Doing
// this in selectionChanged slows down scrolling performance so we wait
// until the user has stopped interacting first.
const QModelIndexList indices = selectionModel()->selectedRows();
if (m_selectionChangedSinceLastGuiTick) {
const QModelIndexList indices = selectionModel()->selectedRows();
if (indices.size() > 0 && indices.last().isValid()) {
TrackModel* trackModel = getTrackModel();
if (trackModel) {
Expand Down

0 comments on commit 42c61e0

Please sign in to comment.