summaryrefslogtreecommitdiffstats
path: root/searchdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchdialog.cpp')
-rw-r--r--searchdialog.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/searchdialog.cpp b/searchdialog.cpp
index 4e62f5e..ada0741 100644
--- a/searchdialog.cpp
+++ b/searchdialog.cpp
@@ -96,7 +96,6 @@ void SearchDialog::doSearch(){
}else if(type == Actors){
doSearchActor();
}
- clearOrSelectFirst();
qApp->restoreOverrideCursor();
}
@@ -412,18 +411,3 @@ void SearchDialog::doActorGenres(QStandardItem *item){
}
}
}
-
-void SearchDialog::clearOrSelectFirst(){
- QModelIndex first = mResV->selectionModel()->model()->index(0, 0);
- if(first.isValid()){
- mResV->selectionModel()->setCurrentIndex(first, QItemSelectionModel::ClearAndSelect);
- }else{
- mDataM->clear();
- int type = mTypeSel->currentData().toInt();
- if(type == Title){
- mDataM->setHeaderData(0, Qt::Horizontal, tr("Parts"));
- }else if(type == Filename || type == Actors){
- mDataM->setHeaderData(0, Qt::Horizontal, tr("Series"));
- }
- }
-}