|
|
|
@ -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())); |
|
|
|
|
|
|
|
|
|