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 8c6d4d63 authored by Laurent Montel's avatar Laurent Montel 😁

Return QString() if list of contacts is empty

parent cf2be506
......@@ -52,6 +52,9 @@ QString GrantleePrint::contactsToHtml( const KABC::Addressee::List &contacts )
if (!mErrorMessage.isEmpty())
return mErrorMessage;
if (contacts.isEmpty()) {
return QString();
}
QVariantList contactsList;
QList<ContactGrantleePrintObject*> lst;
Q_FOREACH (const KABC::Addressee &address, contacts) {
......
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