diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-11 11:02:07 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-11 11:02:07 +0100 |
commit | c2b2f0157103c147d4c30a79658f3096e9b68bf1 (patch) | |
tree | fa29e3ac3b5d50fc57bb13bd4f90af13c0091783 /src/webview.cpp | |
parent | QFIleDialog --> KFIleDialog (diff) | |
download | rekonq-c2b2f0157103c147d4c30a79658f3096e9b68bf1.tar.xz |
ctrl + click open new tab AND select
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 6 |
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; |