diff options
-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; |