diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-13 12:40:29 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-13 12:40:29 +0200 |
commit | 9a40894025f97bada6fe74bf5b3b2446f2fe3e4a (patch) | |
tree | b15abeefb13cbc45807a799e018f56b9f72d7a04 /src/bookmarks.cpp | |
parent | Fixed mailto link handling (diff) | |
download | rekonq-9a40894025f97bada6fe74bf5b3b2446f2fe3e4a.tar.xz |
Applied patch from Johannes Zellner about {Middle,CTRL} clicking
bookmarks links handling.
Many thanks!
Diffstat (limited to 'src/bookmarks.cpp')
-rw-r--r-- | src/bookmarks.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp index d5bd107e..c9db4a9b 100644 --- a/src/bookmarks.cpp +++ b/src/bookmarks.cpp @@ -64,10 +64,10 @@ void BookmarkOwner::openBookmark(const KBookmark & bookmark, Qt::MouseButtons mouseButtons, Qt::KeyboardModifiers keyboardModifiers) { - Q_UNUSED(mouseButtons) - Q_UNUSED(keyboardModifiers) - - emit openUrl(bookmark.url()); + if (keyboardModifiers & Qt::ControlModifier || mouseButtons == Qt::MidButton) + emit openUrl(bookmark.url(), Rekonq::SettingOpenTab); + else + emit openUrl(bookmark.url(), Rekonq::CurrentTab); } @@ -183,7 +183,7 @@ BookmarkProvider::BookmarkProvider(QWidget *parent) // setup menu m_owner = new BookmarkOwner(this); - connect(m_owner, SIGNAL(openUrl(const KUrl&)), this, SIGNAL(openUrl(const KUrl&))); + connect(m_owner, SIGNAL(openUrl(const KUrl&, const Rekonq::OpenType &)), this, SIGNAL(openUrl(const KUrl&, const Rekonq::OpenType &))); m_bookmarkMenu = new BookmarkMenu(m_manager, m_owner, m_menu, m_actionCollection); // setup toolbar |