summaryrefslogtreecommitdiffabout
path: root/kabc/addresseeview.cpp
Side-by-side diff
Diffstat (limited to 'kabc/addresseeview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kabc/addresseeview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp
index 2691d9a..f3cfb23 100644
--- a/kabc/addresseeview.cpp
+++ b/kabc/addresseeview.cpp
@@ -235,4 +235,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee )
QString tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" );
if ( !tempX.isEmpty() ) {
+ if ( tempX == "male" || tempX == "female" ) {
notes += QString(
"<tr><td align=\"right\"><b>%1</b></td>"
@@ -241,4 +242,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee )
.arg( i18n(tempX) );
}
+ }
@@ -328,4 +330,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee )
if ( !tempX.isEmpty() ) {
QDate dt = KGlobal::locale()->readDate( tempX, "%Y-%m-%d");
+ if ( dt.isValid () ) {
tempX = KGlobal::locale()->formatDate(dt, true);
notes += QString(
@@ -335,4 +338,5 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee )
.arg( tempX );
}
+ }
tempX = mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" );
if ( !tempX.isEmpty() ) {