summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-03-15 10:01:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-03-15 10:01:37 +0100
commitabc20c59b0a6a9a294cb7e803baf138db34fb61c (patch)
tree967e88f170e786483f037c293d4ca53ab98122e5
parentCreated a new Network Widget containing Cache, Cookies & Proxy Settings. (diff)
parentClose the tab preview when the tab is clicked (diff)
downloadrekonq-abc20c59b0a6a9a294cb7e803baf138db34fb61c.tar.xz
Merge commit 'refs/merge-requests/106' of git://gitorious.org/rekonq/mainline into m106
-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;