author | zautrix <zautrix> | 2004-07-05 09:51:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-05 09:51:38 (UTC) |
commit | 93f9b1e0a8935210b03a094ce18949b7197041aa (patch) (side-by-side diff) | |
tree | f9d4a531755ead00068367f56c4987446e59af13 | |
parent | 5c5c1354afa5d24768ceefe5b7dd8733ff7bd5f0 (diff) | |
download | kdepimpi-93f9b1e0a8935210b03a094ce18949b7197041aa.zip kdepimpi-93f9b1e0a8935210b03a094ce18949b7197041aa.tar.gz kdepimpi-93f9b1e0a8935210b03a094ce18949b7197041aa.tar.bz2 |
Fixed searching order
-rw-r--r-- | kaddressbook/kabcore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index b06e1bc..7cba9aa 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -662,17 +662,17 @@ void KABCore::incrementalSearch( const QString& text ) { mViewManager->setSelected( QString::null, false ); if ( !text.isEmpty() ) { KABC::Field *field = mIncSearchWidget->currentField(); QString pattern = text.lower(); -#if KDE_VERSION >= 319 +#if 1 //KDE_VERSION >= 319 KABC::AddresseeList list( mAddressBook->allAddressees() ); if ( field ) { list.sortByField( field ); KABC::AddresseeList::Iterator it; for ( it = list.begin(); it != list.end(); ++it ) { if ( field->value( *it ).lower().startsWith( pattern ) ) { mViewManager->setSelected( (*it).uid(), true ); return; |