Fix an off-by-one error when choosing which row to select after removing items in the playlist

This commit is contained in:
David Sansome 2012-11-24 17:10:20 +11:00
parent 65aa0ebae0
commit a6eea2b941
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ void PlaylistView::RemoveSelected() {
model()->removeRows(range.top(), range.height(), range.parent());
}
int new_row = last_row-rows_removed+1;
int new_row = last_row - rows_removed;
// Index of the first column for the row to select
QModelIndex new_index = model()->index(new_row, 0);