summaryrefslogtreecommitdiff
path: root/src/tabbar.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-03-15 00:03:10 +0100
committerYoann Laissus <yoann.laissus@gmail.com>2010-03-15 00:03:10 +0100
commitcc58fe53816a3033e0a71c6db9826eaf2de69934 (patch)
tree65d81a1db8aa2ca71338af07a91d5f0b2a760b19 /src/tabbar.cpp
parentClose the tab preview when the close button is clicked (diff)
downloadrekonq-cc58fe53816a3033e0a71c6db9826eaf2de69934.tar.xz
Close the tab preview when the tab is clicked
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r--src/tabbar.cpp9
1 files changed, 9 insertions, 0 deletions
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;