currentIndex fixed, when removing an item

This commit is contained in:
Uwe Rathmann 2019-02-13 10:26:09 +01:00
parent 7998fdfa43
commit b0041c7030

View File

@ -102,7 +102,7 @@ void QskStackBox::layoutItemRemoved( QskLayoutItem*, int index )
if ( newIndex >= 0 ) if ( newIndex >= 0 )
setCurrentIndex( index ); setCurrentIndex( index );
} }
else if ( index > m_data->currentIndex ) else if ( index < m_data->currentIndex )
{ {
m_data->currentIndex--; m_data->currentIndex--;
// currentIndexChanged ??? // currentIndexChanged ???