summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-10-26 22:55:19 +0100
committermegabigbug <megabigbug@arrakis.(none)>2009-10-26 22:55:19 +0100
commit492dd38e9b2ed389ba1a93964b2a2d481c10fe6b (patch)
tree20bb97888c08aa389cabba1be389b7faa553aeb3 /src
parentkeep trailing slashes (BUG 211913) (diff)
downloadrekonq-492dd38e9b2ed389ba1a93964b2a2d481c10fe6b.tar.xz
add middle click action on favorite preview
Diffstat (limited to 'src')
-rw-r--r--src/previewimage.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 5b4d1efd..1c554cb9 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -267,7 +267,13 @@ void PreviewImage::mousePressEvent(QMouseEvent *event)
{
Application::instance()->loadUrl(m_url);
return;
- };
+ }
+ else if(event->button() == Qt::MidButton)
+ {
+ Application::instance()->loadUrl(m_url, Rekonq::SettingOpenTab);
+ return;
+ }
+
QWidget::mousePressEvent(event);
}