summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--searchdialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/searchdialog.cpp b/searchdialog.cpp
index 086be9f..5c155b9 100644
--- a/searchdialog.cpp
+++ b/searchdialog.cpp
@@ -265,8 +265,14 @@ void ActorsAndMore::searchActor(const QString &actor){
getGenresForActor(cur);
root->appendRow(cur);
}
+
mResultView->setSortingEnabled(true);
mResultView->sortByColumn(0, Qt::AscendingOrder);
+ QModelIndex first = mResultModel->index(0,0);
+ if(first.isValid()){
+ mResultView->selectionModel()->setCurrentIndex(first, QItemSelectionModel::ClearAndSelect);
+ mResultView->expandAll();
+ }
}
void ActorsAndMore::searchSubtitle(const QString &subtitle){