summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabbar.cpp14
-rw-r--r--src/tabbar.h1
2 files changed, 15 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;
+ }
+}
diff --git a/src/tabbar.h b/src/tabbar.h
index 5d297e4c..97c320fc 100644
--- a/src/tabbar.h
+++ b/src/tabbar.h
@@ -81,6 +81,7 @@ protected:
virtual void leaveEvent(QEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
+ virtual void tabRemoved(int);
private slots:
void cloneTab();