diff --git a/examples/iotdashboard/MainItem.cpp b/examples/iotdashboard/MainItem.cpp index 30dcee00..7a09d05e 100644 --- a/examples/iotdashboard/MainItem.cpp +++ b/examples/iotdashboard/MainItem.cpp @@ -40,7 +40,7 @@ void Cube::startAnimation( Qsk::Direction direction ) const bool inverted = ( direction == Qsk::LeftToRight || direction == Qsk::TopToBottom ); animator->setInverted( inverted ); - int newIndex; + int newIndex = 0; switch( direction ) {