diff --git a/src/layouts/QskStackBox.cpp b/src/layouts/QskStackBox.cpp index 06790a49..ea861a2e 100644 --- a/src/layouts/QskStackBox.cpp +++ b/src/layouts/QskStackBox.cpp @@ -102,7 +102,7 @@ void QskStackBox::layoutItemRemoved( QskLayoutItem*, int index ) if ( newIndex >= 0 ) setCurrentIndex( index ); } - else if ( index > m_data->currentIndex ) + else if ( index < m_data->currentIndex ) { m_data->currentIndex--; // currentIndexChanged ???