-rw-r--r-- | kabc/addresseeview.cpp | 4 |
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 | |||
@@ -234,12 +234,14 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) | |||
234 | 234 | ||
235 | QString tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); | 235 | QString tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); |
236 | if ( !tempX.isEmpty() ) { | 236 | if ( !tempX.isEmpty() ) { |
237 | if ( tempX == "male" || tempX == "female" ) { | ||
237 | notes += QString( | 238 | notes += QString( |
238 | "<tr><td align=\"right\"><b>%1</b></td>" | 239 | "<tr><td align=\"right\"><b>%1</b></td>" |
239 | "<td align=\"left\">%2</td></tr>" ) | 240 | "<td align=\"left\">%2</td></tr>" ) |
240 | .arg( i18n( "" ) ) | 241 | .arg( i18n( "" ) ) |
241 | .arg( i18n(tempX) ); | 242 | .arg( i18n(tempX) ); |
242 | } | 243 | } |
244 | } | ||
243 | 245 | ||
244 | 246 | ||
245 | tempX = mAddressee.secrecy().asString(); | 247 | tempX = mAddressee.secrecy().asString(); |
@@ -327,6 +329,7 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) | |||
327 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" ); | 329 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" ); |
328 | if ( !tempX.isEmpty() ) { | 330 | if ( !tempX.isEmpty() ) { |
329 | QDate dt = KGlobal::locale()->readDate( tempX, "%Y-%m-%d"); | 331 | QDate dt = KGlobal::locale()->readDate( tempX, "%Y-%m-%d"); |
332 | if ( dt.isValid () ) { | ||
330 | tempX = KGlobal::locale()->formatDate(dt, true); | 333 | tempX = KGlobal::locale()->formatDate(dt, true); |
331 | notes += QString( | 334 | notes += QString( |
332 | "<tr><td align=\"right\"><b>%1</b></td>" | 335 | "<tr><td align=\"right\"><b>%1</b></td>" |
@@ -334,6 +337,7 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) | |||
334 | .arg( i18n( "Anniversary" ) ) | 337 | .arg( i18n( "Anniversary" ) ) |
335 | .arg( tempX ); | 338 | .arg( tempX ); |
336 | } | 339 | } |
340 | } | ||
337 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ); | 341 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ); |
338 | if ( !tempX.isEmpty() ) { | 342 | if ( !tempX.isEmpty() ) { |
339 | notes += QString( | 343 | notes += QString( |