diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-15 00:03:10 +0100 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-03-15 00:03:10 +0100 |
commit | cc58fe53816a3033e0a71c6db9826eaf2de69934 (patch) | |
tree | 65d81a1db8aa2ca71338af07a91d5f0b2a760b19 /src/tabbar.cpp | |
parent | Close the tab preview when the close button is clicked (diff) | |
download | rekonq-cc58fe53816a3033e0a71c6db9826eaf2de69934.tar.xz |
Close the tab preview when the tab is clicked
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 9 |
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; |