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

Loading…
Cancel
Save