don't animate before being initially painted

This commit is contained in:
Uwe Rathmann 2019-04-16 11:54:34 +02:00
parent 045059b71d
commit 713c80c805
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void QskStackBox::setCurrentIndex( int index )
if ( animator ) if ( animator )
animator->stop(); animator->stop();
if ( window() && isVisible() && animator ) if ( window() && isVisible() && isInitiallyPainted() && animator )
{ {
// When being hidden, the geometry is not updated. // When being hidden, the geometry is not updated.
// So we do it now. // So we do it now.