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

Add more check

parent f234893e
......@@ -35,7 +35,7 @@ GravatarCreateJob::~GravatarCreateJob()
bool GravatarCreateJob::canStart()
{
return !mEmail.trimmed().isEmpty();
return !mEmail.trimmed().isEmpty() && (mEmail.contains(QLatin1Char('@')));
}
void GravatarCreateJob::start()
......
......@@ -41,7 +41,7 @@ void GravatarUpdateJob::start()
bool GravatarUpdateJob::canStart() const
{
return !mEmail.trimmed().isEmpty() && mItem.isValid();
return !mEmail.trimmed().isEmpty() && (mEmail.contains(QLatin1Char('@')));
}
QString GravatarUpdateJob::email() const
......
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