Browse Source

Combine identical branches

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
81daad92ec
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 11
      src/gui/search/searchwidget.cpp

11
src/gui/search/searchwidget.cpp

@ -75,7 +75,6 @@ namespace
case SearchJobWidget::Status::Aborted: case SearchJobWidget::Status::Aborted:
return u"task-reject"_qs; return u"task-reject"_qs;
case SearchJobWidget::Status::Error: case SearchJobWidget::Status::Error:
return u"dialog-warning"_qs;
case SearchJobWidget::Status::NoResults: case SearchJobWidget::Status::NoResults:
return u"dialog-warning"_qs; return u"dialog-warning"_qs;
default: default:
@ -330,15 +329,15 @@ void SearchWidget::on_searchButton_clicked()
return; return;
} }
const QString plugin = selectedPlugin();
QStringList plugins; QStringList plugins;
if (selectedPlugin() == u"all") if (plugin == u"all")
plugins = SearchPluginManager::instance()->allPlugins(); plugins = SearchPluginManager::instance()->allPlugins();
else if (selectedPlugin() == u"enabled") else if ((plugin == u"enabled") || (plugin == u"multi"))
plugins = SearchPluginManager::instance()->enabledPlugins();
else if (selectedPlugin() == u"multi")
plugins = SearchPluginManager::instance()->enabledPlugins(); plugins = SearchPluginManager::instance()->enabledPlugins();
else else
plugins << selectedPlugin(); plugins << plugin;
qDebug("Search with category: %s", qUtf8Printable(selectedCategory())); qDebug("Search with category: %s", qUtf8Printable(selectedCategory()));

Loading…
Cancel
Save