From 567274e9d384a0b562f3af63b23fb1ac9ea90390 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sat, 1 Sep 2012 00:41:31 +0200 Subject: [PATCH] Set current index to the item we have actually selected if no valid/playable indexes were selected --- src/globalsearch/globalsearchview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/globalsearch/globalsearchview.cpp b/src/globalsearch/globalsearchview.cpp index 0a0fa5220..08f382b4b 100644 --- a/src/globalsearch/globalsearchview.cpp +++ b/src/globalsearch/globalsearchview.cpp @@ -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; } }