summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/previewimage.cpp')
-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);
}