summaryrefslogtreecommitdiffstats
path: root/tdeabc
diff options
context:
space:
mode:
authorE. Kotsev <[email protected]>2016-04-03 21:21:07 +1000
committerMichele Calgaro <[email protected]>2016-04-03 21:21:07 +1000
commitd10e1df3b0c7526fab1ea1948d697bfe1a49242a (patch)
tree8f1cf159564beb2f37ff2c62cbb100fd99c6f9c8 /tdeabc
parent491c2e4503b23c701f07792b1ecfc01ab68802d4 (diff)
downloadtdelibs-d10e1df3b0c7526fab1ea1948d697bfe1a49242a.tar.gz
tdelibs-d10e1df3b0c7526fab1ea1948d697bfe1a49242a.zip
tdeabc: fixed birthday assignment in VCardTool. This relates to bug 2613.
Signed-off-by: E. Kotsev <[email protected]> Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeabc')
-rw-r--r--tdeabc/vcardtool.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tdeabc/vcardtool.cpp b/tdeabc/vcardtool.cpp
index 41e76e54d..c1e793e77 100644
--- a/tdeabc/vcardtool.cpp
+++ b/tdeabc/vcardtool.cpp
@@ -413,9 +413,12 @@ Addressee::List VCardTool::parseVCards( const TQString& vcard )
addr.setAgent( parseAgent( *lineIt ) );
// BDAY
- else if ( identifier == "bday" )
- addr.setBirthday( parseDateTime( (*lineIt).value().asString() ) );
-
+ else if ( identifier == "bday" ) {
+ TQString s((*lineIt).value().asString());
+ if ( s.length() > 0 )
+ addr.setBirthday( parseDateTime( s ) );
+ }
+
// CATEGORIES
else if ( identifier == "categories" ) {
const TQStringList categories = splitString( commaSep, (*lineIt).value().asString() );