From d44c64e440e8d551d528eeafef97407c77cd420a Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 4 Jun 2010 02:38:35 +0200 Subject: This should fix the Ctrl+w bug. Anyway, it really doesn't solve it: there is a corner case where the trick implemented doesn't work. We'll see if someone can fix also that.. BUG:233937 --- src/tabbar.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tabbar.cpp') diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 94c5efbd..09aa814d 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -120,30 +120,35 @@ QSize TabBar::tabSizeHint(int index) const void TabBar::cloneTab() { emit cloneTab(m_actualIndex); + m_actualIndex = -1; } void TabBar::closeTab() { emit closeTab(m_actualIndex); + m_actualIndex = -1; } void TabBar::closeOtherTabs() { emit closeOtherTabs(m_actualIndex); + m_actualIndex = -1; } void TabBar::reloadTab() { emit reloadTab(m_actualIndex); + m_actualIndex = -1; } void TabBar::detachTab() { emit detachTab(m_actualIndex); + m_actualIndex = -1; } -- cgit v1.2.1