diff options
author | E. Kotsev <deloptes@yahoo.com> | 2016-04-03 21:21:07 +1000 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-04-03 15:26:15 +0200 |
commit | 999cc98b7fcf24feccecf18c0f59bd5f1e8059f4 (patch) | |
tree | 42b8867c390978cfad9bed6ea7d4682a6fc642e1 | |
parent | 85f091d4e9e65ef8d6b81fd3b6f34c9759551907 (diff) | |
download | tdelibs-999cc98b7fcf24feccecf18c0f59bd5f1e8059f4.tar.gz tdelibs-999cc98b7fcf24feccecf18c0f59bd5f1e8059f4.zip |
tdeabc: fixed birthday assignment in VCardTool. This relates to bug 2613.
Signed-off-by: E. Kotsev <deloptes@yahoo.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d10e1df3b0c7526fab1ea1948d697bfe1a49242a)
-rw-r--r-- | kabc/vcardtool.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kabc/vcardtool.cpp b/kabc/vcardtool.cpp index e346c7c2f..250fae961 100644 --- a/kabc/vcardtool.cpp +++ b/kabc/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() ); |