summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-09 17:36:32 (UTC)
committer zautrix <zautrix>2004-10-09 17:36:32 (UTC)
commitd68435216e1ebc5a7fed391157197994e13992b3 (patch) (unidiff)
tree3cb23a2cf1ee55ab881670c2d7bb3b54d60c3b59
parent59ed933d6c43ecb0ddd3dec53cc289ee8aa68482 (diff)
downloadkdepimpi-d68435216e1ebc5a7fed391157197994e13992b3.zip
kdepimpi-d68435216e1ebc5a7fed391157197994e13992b3.tar.gz
kdepimpi-d68435216e1ebc5a7fed391157197994e13992b3.tar.bz2
sync fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressbook.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp
index ff05f7e..16927e2 100644
--- a/kabc/addressbook.cpp
+++ b/kabc/addressbook.cpp
@@ -445,9 +445,17 @@ void AddressBook::removeUntagged()
445{ 445{
446 Iterator ait; 446 Iterator ait;
447 bool todelete = false;
448 Iterator todel;
447 for ( ait = begin(); ait != end(); ++ait ) { 449 for ( ait = begin(); ait != end(); ++ait ) {
448 if (!(*ait).tagged()) 450 if ( todelete )
449 removeAddressee( ait ); 451 removeAddressee( todel );
450 } 452 if (!(*ait).tagged()) {
451 453 todelete = true;
454 todel = ait;
455 } else
456 todelete = false;
457 }
458 if ( todelete )
459 removeAddressee( todel );
452 deleteRemovedAddressees(); 460 deleteRemovedAddressees();
453} 461}