From 5e71b8b4e65451a200984931bfee34ccd7ef27c6 Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 10 Mar 2005 12:46:12 +0000 Subject: [PATCH] Micro-optimization found when reading the code svn path=/trunk/kdepim/; revision=396328 --- kmfilterdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );