From d0f6a3f909b55abb992be2e436a1d70e2f017ebf Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 19 Jul 2017 13:26:32 +0200 Subject: [PATCH] WebSearchBar: Search when clicking on search suggestion Closes #2281 --- src/lib/navigation/websearchbar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/navigation/websearchbar.cpp b/src/lib/navigation/websearchbar.cpp index 7dfe05121..de46e6e34 100644 --- a/src/lib/navigation/websearchbar.cpp +++ b/src/lib/navigation/websearchbar.cpp @@ -1,6 +1,6 @@ /* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2010-2016 David Rosca +* QupZilla - Qt web browser +* Copyright (C) 2010-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,6 +89,7 @@ WebSearchBar::WebSearchBar(BrowserWindow* window) m_completer->setModel(m_completerModel); m_completer->popup()->setMinimumHeight(90); setCompleter(m_completer); + connect(m_completer->popup(), &QAbstractItemView::activated, this, &WebSearchBar::search); m_openSearchEngine = new OpenSearchEngine(this); m_openSearchEngine->setNetworkAccessManager(mApp->networkManager());