summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-06-29 21:26:43 (UTC)
committer zautrix <zautrix>2005-06-29 21:26:43 (UTC)
commit7ccfe9b674bd5cc52eab708c2e7dfb02c3328deb (patch) (side-by-side diff)
tree4083b66180ee5385ee12dc2a9e03ef26e78f1f58 /korganizer
parentd1ca2fd41cb1390843c974c985cae5912d458d51 (diff)
downloadkdepimpi-7ccfe9b674bd5cc52eab708c2e7dfb02c3328deb.zip
kdepimpi-7ccfe9b674bd5cc52eab708c2e7dfb02c3328deb.tar.gz
kdepimpi-7ccfe9b674bd5cc52eab708c2e7dfb02c3328deb.tar.bz2
fixx
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koimportoldialog.cpp2
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
@@ -437,50 +437,50 @@ void KOImportOLdialog::ol2kopiCalendar( _AppointmentItem * aItem, bool computeRe
role = KCal::Attendee::ReqParticipant;
else if ( optAtt.find( name ) >= 0 )
role = KCal::Attendee::OptParticipant;
else
role = KCal::Attendee::NonParticipant;
QString mail = QString::fromUcs2(pItem->GetAddress().GetBuffer());
if( mail.isEmpty() && name.find("@") > 0 ) {
int kl = name.find("<");
int gr = name.find(">");
if ( kl >= 0 && gr >= 0) {
mail = name.mid (kl+1, gr - kl -1);
name = name.left( kl );
}
else
mail = name;
}
mail = mail.stripWhiteSpace();
QString uid = getUidByEmail( mail );
//uid = QString::fromUcs2( pItem->GetEntryID().GetBuffer());
KCal::Attendee * a = new KCal::Attendee( name, mail,rsvp,stat,role,uid) ;
event->addAttendee( a , false );
itm->Release();
}
if ( !mCalendar->addEventNoDup( event ))
delete event;
else {
// QString mes = i18n("Importing %1.\n date: %2 date: %3").arg( event->summary()).arg( event->dtStart().toString()).arg( event->dtEnd().toString());
//KMessageBox::information(this,mes);
++importedItems;
}
}
void KOImportOLdialog::slotCancel()
{
reject();
}
QString KOImportOLdialog::getUidByEmail( QString email )
{
KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true );
KABC::AddressBook::Iterator it;
for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) {
QStringList em = (*it).emails();
if ( em.contains( email ))
return (*it).uid();
}
- return "";
+ return email;
}