Micro-optimization found when reading the code

svn path=/trunk/kdepim/; revision=396328
wilder-work
David Faure 21 years ago
parent a095f3bd23
commit 5e71b8b4e6
  1. 2
      kmfilterdlg.cpp

@ -673,7 +673,7 @@ void KMFilterListBox::slotDelete()
if ( count > oIdxSelItem )
// oIdxItem is still a valid index
mListBox->setSelected( oIdxSelItem, TRUE );
else if ( (int)mListBox->count() )
else if ( count )
// oIdxSelIdx is no longer valid, but the
// list box isn't empty
mListBox->setSelected( count - 1, TRUE );

Loading…
Cancel
Save