summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-04 21:10:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-04 21:10:14 +0200
commit0c71d428f284675c658c55d2f3d9f858ad78c850 (patch)
tree44f9c55494c2a6ab13061e39c45f8ab07fef1ea6 /src/webpage.cpp
parentWebView dtor (diff)
downloadrekonq-0c71d428f284675c658c55d2f3d9f858ad78c850.tar.xz
- Cleaning mouse gesture managements
- context menu crash fixes && some separators added - preparing PreviewImage for right mouse click manage
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 59c777d6..0a94be58 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -70,8 +70,6 @@
WebPage::WebPage(QObject *parent)
: QWebPage(parent)
- , m_keyboardModifiers(Qt::NoModifier)
- , m_pressedButtons(Qt::NoButton)
, m_requestedUrl()
{
setPluginFactory(new WebPluginFactory(this));
@@ -93,11 +91,9 @@ WebPage::~WebPage()
bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
{
- if (m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton)
+ if (Application::keyboardModifiers() & Qt::ControlModifier || Application::mouseButtons() == Qt::MidButton)
{
Application::instance()->loadUrl(request.url(), Rekonq::SettingOpenTab);
- m_keyboardModifiers = Qt::NoModifier;
- m_pressedButtons = Qt::NoButton;
return false;
}