Commit cc2362ff authored by Rolf Eike Beer's avatar Rolf Eike Beer

Immediately honor encryption with untrusted keys setting

The previous fix was incomplete as it did not move the connect() to the right
place.

Thanks to rkfg for the patch.

BUGS:278238,381820
FIXED-IN:17.04.3
parent 16fabab2
......@@ -120,6 +120,8 @@ KgpgSelectPublicKeyDlg::KgpgSelectPublicKeyDlg(QWidget *parent, KGpgItemModel *m
m_cbuntrusted = new QCheckBox(i18n("Allow encryption with untrusted keys"), optionsbox);
optionsboxVBoxLayout->addWidget(m_cbuntrusted);
// connect before setting the state so the model gets the right state from the start
connect(m_cbuntrusted, &QCheckBox::toggled, this, &KgpgSelectPublicKeyDlg::slotUntrusted);
m_cbuntrusted->setChecked(KGpgSettings::allowUntrustedKeys());
m_cbuntrusted->setWhatsThis(i18n("<b>Allow encryption with untrusted keys</b>: when you import a public key, it is usually "
"marked as untrusted and you cannot use it unless you sign it in order to make it 'trusted'. Checking this "
......@@ -127,7 +129,6 @@ KgpgSelectPublicKeyDlg::KgpgSelectPublicKeyDlg(QWidget *parent, KGpgItemModel *m
m_cbhideid = new QCheckBox(i18n("Hide user id"), optionsbox);
optionsboxVBoxLayout->addWidget(m_cbhideid);
connect(m_cbuntrusted, &QCheckBox::toggled, this, &KgpgSelectPublicKeyDlg::slotUntrusted);
m_cbhideid->setChecked(KGpgSettings::hideUserID());
m_cbhideid->setWhatsThis(i18n("<b>Hide user ID</b>: Do not put the keyid into encrypted packets. This option hides the receiver "
"of the message and is a countermeasure against traffic analysis. It may slow down the decryption process because "
......
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