mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Category combobox is now updated when search engines are enabled/disabled
This commit is contained in:
parent
4a1c8a7279
commit
8d39e2a776
2 changed files with 9 additions and 6 deletions
|
@ -173,7 +173,8 @@ void SearchEngine::tab_changed(int t)
|
|||
}
|
||||
|
||||
void SearchEngine::on_enginesButton_clicked() {
|
||||
new engineSelectDlg(this, supported_engines);
|
||||
engineSelectDlg *dlg = new engineSelectDlg(this, supported_engines);
|
||||
connect(dlg, SIGNAL(enginesChanged()), this, SLOT(fillCatCombobox()));
|
||||
}
|
||||
|
||||
// get the last searchs from a QSettings to a QStringList
|
||||
|
|
|
@ -123,6 +123,7 @@ public:
|
|||
QStringList supportedCategories() const {
|
||||
QStringList supported_cat;
|
||||
foreach(SupportedEngine *engine, values()) {
|
||||
if(engine->isEnabled()) {
|
||||
QStringList s = engine->getSupportedCategories();
|
||||
foreach(QString cat, s) {
|
||||
cat = cat.trimmed();
|
||||
|
@ -130,6 +131,7 @@ public:
|
|||
supported_cat << cat;
|
||||
}
|
||||
}
|
||||
}
|
||||
return supported_cat;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue