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