Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a2b5f780 authored by Laurent Montel's avatar Laurent Montel 😁

Fix remove PREF when necessary

parent a2fd237e
......@@ -206,10 +206,16 @@ QByteArray VCardTool::createVCards( const Addressee::List &list,
} else {
needToAddPref = false;
}
} else {
if (!needToAddPref) {
valueStringList.removeAll(QLatin1String( "PREF" ));
}
}
foundType = true;
}
line.addParameter( i.key(), valueStringList.join(QLatin1String(",")) );
if (!valueStringList.isEmpty()) {
line.addParameter( i.key(), valueStringList.join(QLatin1String(",")) );
}
}
if (!foundType && needToAddPref) {
line.addParameter( QLatin1String( "TYPE" ), QLatin1String( "PREF" ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment