Commit ca25af7f authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Fix check for empty user ID

GnuPG-bug-id: 5997
parent bc749e1b
......@@ -204,7 +204,7 @@ private:
void checkAccept()
{
QStringList errors;
if (ui.resultLabel->text().isEmpty()
if (q->userID().isEmpty()
&& !ui.nameInput->isRequired() && !ui.emailInput->isRequired()) {
errors.push_back(i18n("Enter a name or an email address."));
}
......
Supports Markdown
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