From 713c80c805e6e65cf1ce415a59433819695b4f3f Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 16 Apr 2019 11:54:34 +0200 Subject: [PATCH] don't animate before being initially painted --- src/layouts/QskStackBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/QskStackBox.cpp b/src/layouts/QskStackBox.cpp index 20ea3c1d..10afc3d9 100644 --- a/src/layouts/QskStackBox.cpp +++ b/src/layouts/QskStackBox.cpp @@ -143,7 +143,7 @@ void QskStackBox::setCurrentIndex( int index ) if ( animator ) animator->stop(); - if ( window() && isVisible() && animator ) + if ( window() && isVisible() && isInitiallyPainted() && animator ) { // When being hidden, the geometry is not updated. // So we do it now.