mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 09:02:31 -06:00
- Category combobox is now updated when search engines are enabled/disabled
This commit is contained in:
@@ -123,11 +123,13 @@ public:
|
||||
QStringList supportedCategories() const {
|
||||
QStringList supported_cat;
|
||||
foreach(SupportedEngine *engine, values()) {
|
||||
QStringList s = engine->getSupportedCategories();
|
||||
foreach(QString cat, s) {
|
||||
cat = cat.trimmed();
|
||||
if(!cat.isEmpty() && !supported_cat.contains(cat))
|
||||
supported_cat << cat;
|
||||
if(engine->isEnabled()) {
|
||||
QStringList s = engine->getSupportedCategories();
|
||||
foreach(QString cat, s) {
|
||||
cat = cat.trimmed();
|
||||
if(!cat.isEmpty() && !supported_cat.contains(cat))
|
||||
supported_cat << cat;
|
||||
}
|
||||
}
|
||||
}
|
||||
return supported_cat;
|
||||
|
||||
Reference in New Issue
Block a user