author | zautrix <zautrix> | 2005-06-03 14:15:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 14:15:57 (UTC) |
commit | 0207d193bdb6c66201562a17e68872e018ec223c (patch) (unidiff) | |
tree | c2b15d8acd9bdc7adee3d074551396d98599966f /kaddressbook | |
parent | 7aa43257ffb63e772342f24c1f7945e285171ee6 (diff) | |
download | kdepimpi-0207d193bdb6c66201562a17e68872e018ec223c.zip kdepimpi-0207d193bdb6c66201562a17e68872e018ec223c.tar.gz kdepimpi-0207d193bdb6c66201562a17e68872e018ec223c.tar.bz2 |
formateed name fix
-rw-r--r-- | kaddressbook/nameeditdialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kaddressbook/nameeditdialog.cpp b/kaddressbook/nameeditdialog.cpp index f5dba0f..199f3d6 100644 --- a/kaddressbook/nameeditdialog.cpp +++ b/kaddressbook/nameeditdialog.cpp | |||
@@ -237,5 +237,10 @@ QString NameEditDialog::formattedName( const KABC::Addressee &addr, int type ) | |||
237 | break; | 237 | break; |
238 | case ReverseName: | 238 | case ReverseName: |
239 | retval = addr.familyName() + ", " + addr.givenName(); | 239 | if ( !addr.familyName().isEmpty() ) { |
240 | retval = addr.familyName(); | ||
241 | if ( !addr.givenName().isEmpty() ) | ||
242 | retval += ", " + addr.givenName(); | ||
243 | } else | ||
244 | retval = addr.givenName(); | ||
240 | break; | 245 | break; |
241 | default: | 246 | default: |