author | eilers <eilers> | 2002-10-08 15:22:00 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-08 15:22:00 (UTC) |
commit | faeb94a4000dc539577af465107b5d10903f92d6 (patch) (side-by-side diff) | |
tree | 5a03f2a333b97ea329ef59002ea1ba6d0bf12943 | |
parent | 55c7fa47ac6784ae2bca5ff20e6130c5993e00f2 (diff) | |
download | opie-faeb94a4000dc539577af465107b5d10903f92d6.zip opie-faeb94a4000dc539577af465107b5d10903f92d6.tar.gz opie-faeb94a4000dc539577af465107b5d10903f92d6.tar.bz2 |
email handling fixed
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 5c1391b..12d7421 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp @@ -1388,65 +1388,65 @@ void ContactEditor::setEntry( const OContact &entry ) { (*itLE)->setText( ent.anniversary() ); if ( *it == tr("Nickname" )) (*itLE)->setText( ent.nickname() ); if ( *it == tr("Children" )) (*itLE)->setText( ent.children() ); } QStringList::Iterator itV; for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) *itV = ent.businessPhone(); /* if ( *it == "Business 2 Phone" ) *itV = ent.business2Phone(); */ if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) *itV = ent.businessFax(); if ( *it == tr("Business Mobile") || *it == tr("work Mobile" )) *itV = ent.businessMobile(); /* if ( *it == "Company Phone" ) *itV = ent.companyPhone(); */ if ( *it == tr("Default Email" )) *itV = ent.defaultEmail(); if ( *it == tr("Emails" )) - *itV = ent.emailList().join(","); // :SX + *itV = ent.emailList().join(", "); // :SX if ( *it == tr("Home Phone" )) *itV = ent.homePhone(); /* if ( *it == "Home 2 Phone" ) *itV = ent.home2Phone(); */ if ( *it == tr("Home Fax" )) *itV = ent.homeFax(); if ( *it == tr("Home Mobile" )) *itV = ent.homeMobile(); /* if ( *it == "Car Phone" ) *itV = ent.carPhone(); if ( *it == "ISDN Phone" ) *itV = ent.ISDNPhone(); if ( *it == "Other Phone" ) *itV = ent.otherPhone(); */ if ( *it == tr("Business Pager") || *it == tr("Work Pager" )) *itV = ent.businessPager(); /* if ( *it == "Home Pager") *itV = ent.homePager(); if ( *it == "AIM IM" ) *itV = ent.AIMIM(); if ( *it == "ICQ IM" ) @@ -1588,67 +1588,67 @@ void ContactEditor::saveEntry() { ent.setNickname( (*itLE)->text() ); if ( *it == tr("Children" )) ent.setChildren( (*itLE)->text() ); } QStringList::ConstIterator itV; for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) ent.setBusinessPhone( *itV ); /* if ( *it == tr("Business 2 Phone" ) ent.setBusiness2Phone( *itV ); */ if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) ent.setBusinessFax( *itV ); if ( *it == tr("Business Mobile") || *it == tr("Work Mobile" )) ent.setBusinessMobile( *itV ); /* if ( *it == "Company Phone" ) ent.setCompanyPhone( *itV ); */ //if ( *it == "Default Email" ) //ent.setDefaultEmail( *itV ); if ( *it == tr("Emails" )) { QString allemail; QString defaultmail; parseEmailFrom( *itV, defaultmail, allemail ); - ent.clearEmails(); + // ent.clearEmails(); ent.setDefaultEmail( defaultmail ); - ent.insertEmails( *itV ); + ent.setEmails( allemail ); } if ( *it == tr("Home Phone" )) ent.setHomePhone( *itV ); /* if ( *it == "Home 2 Phone" ) ent.setHome2Phone( *itV ); */ if ( *it == tr("Home Fax" )) ent.setHomeFax( *itV ); if ( *it == tr("Home Mobile" )) ent.setHomeMobile( *itV ); /* if ( *it == "Car Phone" ) ent.setCarPhone( *itV ); if ( *it == "ISDN Phone" ) ent.setISDNPhone( *itV ); if ( *it == "Other Phone" ) ent.setOtherPhone( *itV ); */ if ( *it == tr("Business Pager") || *it == tr("Work Pager") ) ent.setBusinessPager( *itV ); /* if ( *it == "Home Pager" ) ent.setHomePager( *itV ); if ( *it == "AIM IM" ) ent.setAIMIM( *itV ); |