From 25c5df38ada4523c7c76de55bf736656cf2bb5dc Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Thu, 11 Mar 2010 12:40:15 +0100 Subject: Close the tab preview when the close button is clicked --- src/tabbar.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/tabbar.cpp') diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 25351ac0..80782116 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -293,3 +293,17 @@ void TabBar::mouseReleaseEvent(QMouseEvent *event) KTabBar::mouseReleaseEvent(event); } + + +void TabBar::tabRemoved(int index) +{ + Q_UNUSED(index) + if (ReKonfig::alwaysShowTabPreviews()) + { + if ( !m_previewPopup.isNull() ) + { + m_previewPopup.data()->hide(); + } + m_currentTabPreview = -1; + } +} -- cgit v1.2.1