summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-11 11:02:07 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-11 11:02:07 +0100
commitc2b2f0157103c147d4c30a79658f3096e9b68bf1 (patch)
treefa29e3ac3b5d50fc57bb13bd4f90af13c0091783 /src/webview.cpp
parentQFIleDialog --> KFIleDialog (diff)
downloadrekonq-c2b2f0157103c147d4c30a79658f3096e9b68bf1.tar.xz
ctrl + click open new tab AND select
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index b14b4936..b03c9291 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -63,8 +63,7 @@ BrowserMainWindow *WebPage::mainWindow()
bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
{
- // ctrl open in new tab
- // ctrl-shift open in new tab and select
+ // ctrl open in new tab and select
// ctrl-alt open in new window
if ( type == QWebPage::NavigationTypeLinkClicked && (m_keyboardModifiers & Qt::ControlModifier
|| m_pressedButtons == Qt::MidButton) )
@@ -82,8 +81,7 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
}
else
{
- bool selectNewTab = (m_keyboardModifiers & Qt::ShiftModifier);
- webView = mainWindow()->tabWidget()->newTab(selectNewTab);
+ webView = mainWindow()->tabWidget()->newTab( true );
}
webView->load(request);
m_keyboardModifiers = Qt::NoModifier;