mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Set current index to the item we have actually selected if no valid/playable indexes were selected
This commit is contained in:
parent
04c4d97930
commit
567274e9d3
@ -349,6 +349,7 @@ MimeData* GlobalSearchView::SelectedMimeData() {
|
||||
QModelIndex index = front_proxy_->index(i, 0);
|
||||
if (!index.data(LibraryModel::Role_IsDivider).toBool()) {
|
||||
indexes << index;
|
||||
ui_->results->setCurrentIndex(index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user