From 30ad8a8d5837ea709267ed47da02d1b314d22adf Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 25 Oct 2009 15:25:11 +0100 Subject: Ronny's close tab solution was better :) --- src/tabbar.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/tabbar.cpp') diff --git a/src/tabbar.cpp b/src/tabbar.cpp index ac050191..b43bf4d0 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -272,11 +272,7 @@ void TabBar::mousePressEvent(QMouseEvent *event) { // just close tab on middle mouse click if (event->button() == Qt::MidButton) - { - int index = tabAt(event->pos()); - emit closeTab(index); return; - } KTabBar::mousePressEvent(event); } -- cgit v1.2.1