1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

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

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);