summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-12 12:25:24 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-03-12 12:25:24 +0100
commit19bee2a91fa97ba451658a7d3300275f471d2ba8 (patch)
treee1f8acde7c24718477ba896f60691f9ad1668a18 /src/tabbar.cpp
parentMerge commit 'refs/merge-requests/102' of git://gitorious.org/rekonq/mainline... (diff)
parentClose the tab preview when the close button is clicked (diff)
downloadrekonq-19bee2a91fa97ba451658a7d3300275f471d2ba8.tar.xz
Merge commit 'refs/merge-requests/103' of git://gitorious.org/rekonq/mainline into tabPreviewFIx
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp14
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;
+ }
+}