diff --git a/kmfilterdlg.cpp b/kmfilterdlg.cpp index 5f1b71c3a..6213dea0b 100644 --- a/kmfilterdlg.cpp +++ b/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 );