Diffstat (limited to 'korganizer/incomingdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/incomingdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/incomingdialog.cpp b/korganizer/incomingdialog.cpp index 490d21e..f3bd09f 100644 --- a/korganizer/incomingdialog.cpp +++ b/korganizer/incomingdialog.cpp | |||
@@ -479,49 +479,49 @@ bool IncomingDialog::automaticAction(ScheduleItemIn *item) | |||
479 | if ( checkAttendeesInAddressbook(inc) ) | 479 | if ( checkAttendeesInAddressbook(inc) ) |
480 | autoAction = acceptMessage(item); | 480 | autoAction = acceptMessage(item); |
481 | } else return false; | 481 | } else return false; |
482 | } else { | 482 | } else { |
483 | 483 | ||
484 | if ( method==Scheduler::Refresh ) { | 484 | if ( method==Scheduler::Refresh ) { |
485 | if ( KOPrefs::instance()->mIMIPAutoRefresh==KOPrefs::addressbookAuto ) { | 485 | if ( KOPrefs::instance()->mIMIPAutoRefresh==KOPrefs::addressbookAuto ) { |
486 | // send refresh-information | 486 | // send refresh-information |
487 | if ( checkAttendeesInAddressbook(inc) ) | 487 | if ( checkAttendeesInAddressbook(inc) ) |
488 | autoAction = acceptMessage(item); | 488 | autoAction = acceptMessage(item); |
489 | else return false; | 489 | else return false; |
490 | } else return false; | 490 | } else return false; |
491 | } else return false; | 491 | } else return false; |
492 | } | 492 | } |
493 | } | 493 | } |
494 | } | 494 | } |
495 | return autoAction; | 495 | return autoAction; |
496 | } | 496 | } |
497 | 497 | ||
498 | bool IncomingDialog::checkOrganizerInAddressbook(QString organizer) | 498 | bool IncomingDialog::checkOrganizerInAddressbook(QString organizer) |
499 | { | 499 | { |
500 | bool inBook = false; | 500 | bool inBook = false; |
501 | #ifndef KORG_NOKABC | 501 | #ifndef KORG_NOKABC |
502 | KABC::AddressBook *add_book = KABC::StdAddressBook::self(); | 502 | KABC::AddressBook *add_book = KABC::StdAddressBook::self(); |
503 | KABC::Addressee::List addressList; | 503 | KABC::Addressee::List addressList; |
504 | addressList = add_book->findByEmail(organizer); | 504 | addressList = add_book->findByEmail(organizer); |
505 | if ( addressList.size()>0 ) inBook = true; | 505 | if ( addressList.size()>0 ) inBook = true; |
506 | #endif | 506 | #endif |
507 | return inBook; | 507 | return inBook; |
508 | } | 508 | } |
509 | 509 | ||
510 | bool IncomingDialog::checkAttendeesInAddressbook(IncidenceBase *inc) | 510 | bool IncomingDialog::checkAttendeesInAddressbook(IncidenceBase *inc) |
511 | { | 511 | { |
512 | bool inBook = false; | 512 | bool inBook = false; |
513 | #ifndef KORG_NOKABC | 513 | #ifndef KORG_NOKABC |
514 | KABC::AddressBook *add_book = KABC::StdAddressBook::self(); | 514 | KABC::AddressBook *add_book = KABC::StdAddressBook::self(); |
515 | KABC::Addressee::List addressList; | 515 | KABC::Addressee::List addressList; |
516 | QPtrList <Attendee> attendees; | 516 | QPtrList <Attendee> attendees; |
517 | Attendee *att; | 517 | Attendee *att; |
518 | attendees = inc->attendees(); | 518 | attendees = inc->attendees(); |
519 | for (att=attendees.first();att;att=attendees.next()) { | 519 | for (att=attendees.first();att;att=attendees.next()) { |
520 | addressList = add_book->findByEmail(att->email()); | 520 | addressList = add_book->findByEmail(att->email()); |
521 | if (addressList.size()>0 ) inBook = true; | 521 | if (addressList.size()>0 ) inBook = true; |
522 | } | 522 | } |
523 | #endif | 523 | #endif |
524 | return inBook; | 524 | return inBook; |
525 | } | 525 | } |
526 | 526 | ||
527 | #include "incomingdialog.moc" | 527 | //#include "incomingdialog.moc" |