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 d10e1df3b0)
pull/16/head
E. Kotsev 9 years ago committed by Michele Calgaro
parent 29bb34d2ff
commit fef74a0f99

@ -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() );

Loading…
Cancel
Save