-rw-r--r-- | libopie/pim/ocontact.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index efa2777..6aec62e 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp | |||
@@ -489,35 +489,39 @@ QString OContact::toRichText() const | |||
489 | text += Qtopia::escapeString(value) + "<br>"; | 489 | text += Qtopia::escapeString(value) + "<br>"; |
490 | state = homeState(); | 490 | state = homeState(); |
491 | if ( !(value = homeCity()).isEmpty() ) { | 491 | if ( !(value = homeCity()).isEmpty() ) { |
492 | text += Qtopia::escapeString(value); | 492 | text += Qtopia::escapeString(value); |
493 | if ( !state.isEmpty() ) | 493 | if ( !state.isEmpty() ) |
494 | text += ", " + Qtopia::escapeString(state); | 494 | text += ", " + Qtopia::escapeString(state); |
495 | text += "<br>"; | 495 | text += "<br>"; |
496 | } else if (!state.isEmpty()) | 496 | } else if (!state.isEmpty()) |
497 | text += Qtopia::escapeString(state) + "<br>"; | 497 | text += Qtopia::escapeString(state) + "<br>"; |
498 | if ( !(value = homeZip()).isEmpty() ) | 498 | if ( !(value = homeZip()).isEmpty() ) |
499 | text += Qtopia::escapeString(value) + "<br>"; | 499 | text += Qtopia::escapeString(value) + "<br>"; |
500 | if ( !(value = homeCountry()).isEmpty() ) | 500 | if ( !(value = homeCountry()).isEmpty() ) |
501 | text += Qtopia::escapeString(value) + "<br>"; | 501 | text += Qtopia::escapeString(value) + "<br>"; |
502 | 502 | ||
503 | // the others... | 503 | // the others... |
504 | QString str; | 504 | QString str; |
505 | QString defEmail = defaultEmail(); | ||
506 | if ( !defEmail.isEmpty() ) | ||
507 | text += "<b>" + QObject::tr("Default Email: ") + "</b>" | ||
508 | + Qtopia::escapeString(defEmail) + "<br>"; | ||
505 | str = emails(); | 509 | str = emails(); |
506 | if ( !str.isEmpty() ) | 510 | if ( !str.isEmpty() && ( str != defEmail ) ) |
507 | text += "<b>" + QObject::tr("Email Addresses: ") + "</b>" | 511 | text += "<b>" + QObject::tr("All Emails: ") + "</b>" |
508 | + Qtopia::escapeString(str) + "<br>"; | 512 | + Qtopia::escapeString(str) + "<br>"; |
509 | str = homePhone(); | 513 | str = homePhone(); |
510 | if ( !str.isEmpty() ) | 514 | if ( !str.isEmpty() ) |
511 | text += "<b>" + QObject::tr("Home Phone: ") + "</b>" | 515 | text += "<b>" + QObject::tr("Home Phone: ") + "</b>" |
512 | + Qtopia::escapeString(str) + "<br>"; | 516 | + Qtopia::escapeString(str) + "<br>"; |
513 | str = homeFax(); | 517 | str = homeFax(); |
514 | if ( !str.isEmpty() ) | 518 | if ( !str.isEmpty() ) |
515 | text += "<b>" + QObject::tr("Home Fax: ") + "</b>" | 519 | text += "<b>" + QObject::tr("Home Fax: ") + "</b>" |
516 | + Qtopia::escapeString(str) + "<br>"; | 520 | + Qtopia::escapeString(str) + "<br>"; |
517 | str = homeMobile(); | 521 | str = homeMobile(); |
518 | if ( !str.isEmpty() ) | 522 | if ( !str.isEmpty() ) |
519 | text += "<b>" + QObject::tr("Home Mobile: ") + "</b>" | 523 | text += "<b>" + QObject::tr("Home Mobile: ") + "</b>" |
520 | + Qtopia::escapeString(str) + "<br>"; | 524 | + Qtopia::escapeString(str) + "<br>"; |
521 | str = homeWebpage(); | 525 | str = homeWebpage(); |
522 | if ( !str.isEmpty() ) | 526 | if ( !str.isEmpty() ) |
523 | text += "<b>" + QObject::tr("Home Web Page: ") + "</b>" | 527 | text += "<b>" + QObject::tr("Home Web Page: ") + "</b>" |