Add WebUI search API controller

Closes #2495.
This commit is contained in:
Thomas Piccirello
2018-06-06 20:47:27 -04:00
parent b2ffd6e03b
commit 0b6ae68801
8 changed files with 464 additions and 17 deletions

View File

@@ -226,7 +226,6 @@ void SearchWidget::selectActivePage()
SearchWidget::~SearchWidget()
{
qDebug("Search destruction");
delete SearchPluginManager::instance();
delete m_ui;
}
@@ -279,7 +278,7 @@ void SearchWidget::giveFocusToSearchInput()
// Function called when we click on search button
void SearchWidget::on_searchButton_clicked()
{
if (Utils::ForeignApps::pythonInfo().version.majorNumber() <= 0) {
if (!Utils::ForeignApps::pythonInfo().isValid()) {
m_mainWindow->showNotificationBaloon(tr("Search Engine"), tr("Please install Python to use the Search Engine."));
return;
}