summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index 73788094..40c8dc1c 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -270,6 +270,15 @@ void TabBar::leaveEvent(QEvent *event)
KTabBar::leaveEvent(event);
}
+void TabBar::mousePressEvent(QMouseEvent *event)
+{
+ // just close tab on middle mouse click
+ if (event->button() == Qt::MidButton)
+ return;
+
+ KTabBar::mousePressEvent(event);
+}
+
void TabBar::updateNewTabButton()
{