mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-09 11:51:03 +00:00
searchengine: drop unused flag and related code
This commit is contained in:
parent
ee8a492954
commit
1b24feb4f4
@ -215,7 +215,6 @@ void SearchEngine::on_search_button_clicked()
|
||||
search_button->setText(tr("Search"));
|
||||
return;
|
||||
}
|
||||
allTabsSetActiveState(false);
|
||||
}
|
||||
|
||||
// Reload environment variables (proxy)
|
||||
@ -469,7 +468,6 @@ void SearchEngine::searchFinished(int exitcode, QProcess::ExitStatus)
|
||||
}
|
||||
}
|
||||
search_status->setText(currentSearchTab->status);
|
||||
activeSearchTab->isActive = false;
|
||||
activeSearchTab = 0;
|
||||
search_button->setText(tr("Search"));
|
||||
}
|
||||
@ -577,9 +575,3 @@ void SearchEngine::on_goToDescBtn_clicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline void SearchEngine::allTabsSetActiveState(bool newState)
|
||||
{
|
||||
foreach(SearchTab *tab, all_tab)
|
||||
tab->isActive = newState;
|
||||
}
|
||||
|
@ -126,7 +126,6 @@ private:
|
||||
QList<QPointer<SearchTab> > all_tab; // To store all tabs
|
||||
const SearchCategories full_cat_names;
|
||||
MainWindow *mp_mainWindow;
|
||||
inline void allTabsSetActiveState(bool);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -48,8 +48,6 @@ SearchTab::SearchTab(SearchEngine *parent) : QWidget(), parent(parent)
|
||||
resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
box->addWidget(results_lbl);
|
||||
box->addWidget(resultsBrowser);
|
||||
// New tab is created with new search
|
||||
isActive = true;
|
||||
|
||||
setLayout(box);
|
||||
// Set Search results list model
|
||||
|
@ -71,7 +71,6 @@ public:
|
||||
QTreeView * getCurrentTreeView();
|
||||
void setRowColor(int row, QString color);
|
||||
QHeaderView* header() const;
|
||||
bool isActive;
|
||||
QString status;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user