summaryrefslogtreecommitdiff
authoreilers <eilers>2002-10-08 15:22:00 (UTC)
committer eilers <eilers>2002-10-08 15:22:00 (UTC)
commitfaeb94a4000dc539577af465107b5d10903f92d6 (patch) (side-by-side diff)
tree5a03f2a333b97ea329ef59002ea1ba6d0bf12943
parent55c7fa47ac6784ae2bca5ff20e6130c5993e00f2 (diff)
downloadopie-faeb94a4000dc539577af465107b5d10903f92d6.zip
opie-faeb94a4000dc539577af465107b5d10903f92d6.tar.gz
opie-faeb94a4000dc539577af465107b5d10903f92d6.tar.bz2
email handling fixed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.cpp6
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
@@ -1414,13 +1414,13 @@ void ContactEditor::setEntry( const OContact &entry ) {
*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();
@@ -1614,15 +1614,15 @@ void ContactEditor::saveEntry() {
//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" )