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:
parent
65aa0ebae0
commit
a6eea2b941
@ -575,7 +575,7 @@ void PlaylistView::RemoveSelected() {
|
|||||||
model()->removeRows(range.top(), range.height(), range.parent());
|
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
|
// Index of the first column for the row to select
|
||||||
QModelIndex new_index = model()->index(new_row, 0);
|
QModelIndex new_index = model()->index(new_row, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user