diff --git a/layouts/layoutanimator.cpp b/layouts/layoutanimator.cpp index cda8d2bf9..397448398 100644 --- a/layouts/layoutanimator.cpp +++ b/layouts/layoutanimator.cpp @@ -82,11 +82,12 @@ public: void prepareItemForState( LayoutItem *item , LayoutAnimator::State state ) { // opacity setting for widgets - if ( state == InsertedState && effects[state] == LayoutAnimator::FadeInMoveEffect ) { - Widget *widget = dynamic_cast(item->graphicsItem()); - - if ( widget ) { - widget->setOpacity(0); // item is invisible immediately after insertion + Widget *widget = dynamic_cast(item->graphicsItem()); + if (widget) { + if (state == InsertedState && effects[state] == LayoutAnimator::FadeInMoveEffect) { + widget->setOpacity(0); // item is invisible immediately after insertion + } else { + widget->setOpacity(1.0); } } }