author | zautrix <zautrix> | 2005-01-17 00:10:19 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-17 00:10:19 (UTC) |
commit | 376ffdba71ab4d7d7988229f38678394a54e5576 (patch) (side-by-side diff) | |
tree | f70fd4d442cf584db0d9d921dce1b88ab47ca1c5 /kaddressbook/views/kaddressbookiconview.cpp | |
parent | 33c04477896c52e9cfea2a29facd959f82cbf17a (diff) | |
download | kdepimpi-376ffdba71ab4d7d7988229f38678394a54e5576.zip kdepimpi-376ffdba71ab4d7d7988229f38678394a54e5576.tar.gz kdepimpi-376ffdba71ab4d7d7988229f38678394a54e5576.tar.bz2 |
several fixes
Diffstat (limited to 'kaddressbook/views/kaddressbookiconview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kaddressbook/views/kaddressbookiconview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/views/kaddressbookiconview.cpp b/kaddressbook/views/kaddressbookiconview.cpp index faeda06..ef0a23a 100644 --- a/kaddressbook/views/kaddressbookiconview.cpp +++ b/kaddressbook/views/kaddressbookiconview.cpp @@ -274,49 +274,49 @@ void KAddressBookIconView::doSearch( const QString& s ,KABC::Field *field ) continue; #if QT_VERSION >= 300 if (re.search(field->value( *it ).lower()) != -1) #else if (re.match(field->value( *it ).lower()) != -1) #endif mIconList.append(new AddresseeIconViewItem( fields(), addressBook(), *it, mIconView )); } } else { KABC::Field::List fieldList = allFields(); KABC::Field::List::ConstIterator fieldIt; for (it = addresseeList.begin(); it != addresseeList.end(); ++it ) { if ( (*it).uid().left(2) == "la" && (*it).uid().left(19) == QString("last-syncAddressee-") ) continue; for ( fieldIt = fieldList.begin(); fieldIt != fieldList.end(); ++fieldIt ) { #if QT_VERSION >= 300 if (re.search((*fieldIt)->value( *it ).lower()) != -1) #else if (re.match((*fieldIt)->value( *it ).lower()) != -1) #endif { mIconList.append( new AddresseeIconViewItem( fields(), addressBook(), *it, mIconView )); - continue; + break; } } } } mIconView->arrangeItemsInGrid( true ); if ( mIconView->firstItem() ) { mIconView->setCurrentItem ( mIconView->firstItem() ); mIconView->setSelected ( mIconView->firstItem() , true ); } else emit selected(QString::null); } QStringList KAddressBookIconView::selectedUids() { QStringList uidList; QIconViewItem *item; AddresseeIconViewItem *aItem; for (item = mIconView->firstItem(); item; item = item->nextItem()) { if (item->isSelected()) { #ifndef KAB_EMBEDDED aItem = dynamic_cast<AddresseeIconViewItem*>(item); |