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

View File

@ -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.