1
0
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:
Arnaud Bienner 2012-09-01 00:41:31 +02:00
parent 04c4d97930
commit 567274e9d3

View File

@ -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;
}
}