diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-11 12:40:15 +0100 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-11 12:40:15 +0100 |
commit | 25c5df38ada4523c7c76de55bf736656cf2bb5dc (patch) | |
tree | 6f113db121570c34393c19eb839f08513aa09e0d /src/tabbar.cpp | |
parent | rekonq 0.3.99 (diff) | |
download | rekonq-25c5df38ada4523c7c76de55bf736656cf2bb5dc.tar.xz |
Close the tab preview when the close button is clicked
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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; + } +} |