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

Do not remove recipient widgets when they become empty

Automatically removing empty recipient widgets can confuse users, in
particular users using screen readers.

GnuPG-bug-id: 5845
parent 60536ecf
Pipeline #150959 passed with stage
in 3 minutes and 56 seconds
......@@ -438,10 +438,6 @@ void CertificateLineEdit::Private::updateKey()
Q_EMIT q->keyChanged();
if (mailText.isEmpty()) {
Q_EMIT q->wantsRemoval(q);
QString CertificateLineEdit::Private::errorMessage() const
......@@ -80,9 +80,6 @@ Q_SIGNALS:
/** Emitted when the selected key changed. */
void keyChanged();
/** Emitted when the entry is empty and editing is finished. */
void wantsRemoval(CertificateLineEdit *w);
/** Emitted when the entry is no longer empty. */
void editingStarted();
......@@ -271,8 +271,6 @@ CertificateLineEdit *SignEncryptWidget::addRecipientWidget()
connect(certSel, &CertificateLineEdit::keyChanged,
this, &SignEncryptWidget::recipientsChanged);
connect(certSel, &CertificateLineEdit::wantsRemoval,
this, &SignEncryptWidget::recpRemovalRequested);
connect(certSel, &CertificateLineEdit::editingStarted,
this, &SignEncryptWidget::recipientsChanged);
connect(certSel, &CertificateLineEdit::certificateSelectionRequested,
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