From 290598acc8851afcce5b7df19bb495e3c0ce4e2b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 7 Dec 2012 00:28:40 +0100 Subject: do not update tabbar until we decided where putting the new tab button --- src/tabwindow/tabwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tabwindow/tabwindow.cpp b/src/tabwindow/tabwindow.cpp index c42d2048..e1d239a7 100644 --- a/src/tabwindow/tabwindow.cpp +++ b/src/tabwindow/tabwindow.cpp @@ -339,6 +339,8 @@ void TabWindow::updateNewTabButtonPosition() if (isFullScreen()) return; + setUpdatesEnabled(false); + int tabWidgetWidth = frameSize().width(); int tabBarWidth = tabBar()->sizeHint().width(); @@ -353,6 +355,7 @@ void TabWindow::updateNewTabButtonPosition() } _addTabButton->show(); + setUpdatesEnabled(true); } -- cgit v1.2.1