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

Treat whitespace-only text as empty

GnuPG-bug-id: 5845
parent ba966cc7
......@@ -349,7 +349,7 @@ void CertificateLineEdit::Private::updateKey()
{
static const _detail::ByFingerprint<std::equal_to> keysHaveSameFingerprint;
const auto mailText = ui.lineEdit.text();
const auto mailText = ui.lineEdit.text().trimmed();
auto newKey = Key();
auto newGroup = KeyGroup();
if (mailText.isEmpty()) {
......@@ -450,7 +450,7 @@ KeyGroup CertificateLineEdit::group() const
QString CertificateLineEdit::Private::text() const
{
return ui.lineEdit.text();
return ui.lineEdit.text().trimmed();
}
QString CertificateLineEdit::text() const
......
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