From cc58fe53816a3033e0a71c6db9826eaf2de69934 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Mon, 15 Mar 2010 00:03:10 +0100 Subject: Close the tab preview when the tab is clicked --- src/tabbar.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 80782116..44972548 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -244,6 +244,15 @@ void TabBar::leaveEvent(QEvent *event) void TabBar::mousePressEvent(QMouseEvent *event) { + if (ReKonfig::alwaysShowTabPreviews()) + { + if ( !m_previewPopup.isNull() ) + { + m_previewPopup.data()->hide(); + } + m_currentTabPreview = -1; + } + // just close tab on middle mouse click if (event->button() == Qt::MidButton) return; -- cgit v1.2.1