Diffstat (limited to 'korganizer/koimportoldialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koimportoldialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koimportoldialog.cpp b/korganizer/koimportoldialog.cpp index c4d5f06..7aa6076 100644 --- a/korganizer/koimportoldialog.cpp +++ b/korganizer/koimportoldialog.cpp | |||
@@ -461,26 +461,26 @@ void KOImportOLdialog::ol2kopiCalendar( _AppointmentItem * aItem, bool computeRe | |||
461 | 461 | ||
462 | 462 | ||
463 | if ( !mCalendar->addEventNoDup( event )) | 463 | if ( !mCalendar->addEventNoDup( event )) |
464 | delete event; | 464 | delete event; |
465 | else { | 465 | else { |
466 | // QString mes = i18n("Importing %1.\n date: %2 date: %3").arg( event->summary()).arg( event->dtStart().toString()).arg( event->dtEnd().toString()); | 466 | // QString mes = i18n("Importing %1.\n date: %2 date: %3").arg( event->summary()).arg( event->dtStart().toString()).arg( event->dtEnd().toString()); |
467 | //KMessageBox::information(this,mes); | 467 | //KMessageBox::information(this,mes); |
468 | ++importedItems; | 468 | ++importedItems; |
469 | } | 469 | } |
470 | } | 470 | } |
471 | void KOImportOLdialog::slotCancel() | 471 | void KOImportOLdialog::slotCancel() |
472 | { | 472 | { |
473 | reject(); | 473 | reject(); |
474 | } | 474 | } |
475 | 475 | ||
476 | QString KOImportOLdialog::getUidByEmail( QString email ) | 476 | QString KOImportOLdialog::getUidByEmail( QString email ) |
477 | { | 477 | { |
478 | KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); | 478 | KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); |
479 | KABC::AddressBook::Iterator it; | 479 | KABC::AddressBook::Iterator it; |
480 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { | 480 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { |
481 | QStringList em = (*it).emails(); | 481 | QStringList em = (*it).emails(); |
482 | if ( em.contains( email )) | 482 | if ( em.contains( email )) |
483 | return (*it).uid(); | 483 | return (*it).uid(); |
484 | } | 484 | } |
485 | return ""; | 485 | return email; |
486 | } | 486 | } |