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

Add error message

parent 3edb64fe
......@@ -70,15 +70,13 @@ void AttachmentVcardFromAddressBookJob::doStart()
connect( expandJob, SIGNAL(result(KJob*)), this, SLOT(slotExpandGroupResult(KJob*)) );
expandJob->start();
} else {
//TODO define error message
setError( KJob::UserDefinedError );
//q->setErrorText( msg );
setErrorText( i18n("Unknow Contact Type") );
emitResult();
}
} else {
//TODO define error message
setError( KJob::UserDefinedError );
//q->setErrorText( msg );
setErrorText( i18n("Invalid Contact") );
emitResult();
}
}
......@@ -95,7 +93,7 @@ void AttachmentVcardFromAddressBookJob::slotExpandGroupResult(KJob* job)
addAttachment( groupData, attachmentName );
} else {
setError( KJob::UserDefinedError );
//q->setErrorText( msg );
setErrorText( i18n("Impossible to generate vcard.") );
emitResult();
}
}
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