From 77aa5b0f0736aded3d25b6492b5265ffe155f80d Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 10 May 2013 22:34:51 +0200 Subject: [PATCH] [LocationCompleter] Hide completion popup after Alt+Enter. Hides completion popup after opening new tab with Alt+Enter shortcut. --- src/lib/app/qz_namespace.h | 4 ++-- src/lib/navigation/locationbar.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/app/qz_namespace.h b/src/lib/app/qz_namespace.h index 2f9a9c2f5..7ce1d8819 100644 --- a/src/lib/app/qz_namespace.h +++ b/src/lib/app/qz_namespace.h @@ -18,6 +18,8 @@ #ifndef QZ_NAMESPACE_H #define QZ_NAMESPACE_H +#include + #ifdef QUPZILLA_SHAREDLIBRARY #define QT_QUPZILLA_EXPORT Q_DECL_EXPORT #else @@ -32,8 +34,6 @@ #define Q_LIKELY(x) x #endif -#include - namespace Qz { // Version of session.dat file diff --git a/src/lib/navigation/locationbar.cpp b/src/lib/navigation/locationbar.cpp index fdefc0f16..f5ec16d52 100644 --- a/src/lib/navigation/locationbar.cpp +++ b/src/lib/navigation/locationbar.cpp @@ -473,6 +473,7 @@ void LocationBar::keyPressEvent(QKeyEvent* event) break; case Qt::AltModifier: + m_completer.closePopup(); p_QupZilla->tabWidget()->addView(createUrl()); m_holdingAlt = false; break;