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
1 changed files with 1 additions and 0 deletions

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