diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-06 00:41:22 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-06 00:41:22 +0200 |
commit | 84239c0babad3b46d1ed4458bcaedff730997829 (patch) | |
tree | f1f61ac209a9c9303d833ee41bef8ea30a5610e0 /src/webpage.cpp | |
parent | cursor:pointer over thumbnails (diff) | |
download | rekonq-84239c0babad3b46d1ed4458bcaedff730997829.tar.xz |
I apologize for this. As said, I use no mouse and I couldn't
argue this strange GUI behaviour
Revert "- Cleaning mouse gesture managements"
This reverts commit 0c71d428f284675c658c55d2f3d9f858ad78c850.
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 0a94be58..59c777d6 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -70,6 +70,8 @@ WebPage::WebPage(QObject *parent) : QWebPage(parent) + , m_keyboardModifiers(Qt::NoModifier) + , m_pressedButtons(Qt::NoButton) , m_requestedUrl() { setPluginFactory(new WebPluginFactory(this)); @@ -91,9 +93,11 @@ WebPage::~WebPage() bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type) { - if (Application::keyboardModifiers() & Qt::ControlModifier || Application::mouseButtons() == Qt::MidButton) + if (m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton) { Application::instance()->loadUrl(request.url(), Rekonq::SettingOpenTab); + m_keyboardModifiers = Qt::NoModifier; + m_pressedButtons = Qt::NoButton; return false; } |