Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
d5f34a6d
Commit
d5f34a6d
authored
Oct 04, 2022
by
Sandro Knauß
🐝
Browse files
Add Autocrypt option to identity dialog.
parent
6a4e4569
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/identity/identitydialog.cpp
View file @
d5f34a6d
...
...
@@ -440,6 +440,11 @@ IdentityDialog::IdentityDialog(QWidget *parent)
formLayout
->
addRow
(
label
,
mPreferredCryptoMessageFormat
);
mAutocrypt
=
new
QComboBox
(
i18n
(
"Enable Autocrypt"
));
label
=
new
QLabel
(
i18n
(
"Autocrypt:"
),
tab
);
formLayout
->
addRow
(
label
,
mAutocrypt
);
mAutoSign
=
new
QCheckBox
(
i18n
(
"Automatically sign messages"
));
formLayout
->
addWidget
(
mAutoSign
);
...
...
@@ -832,6 +837,7 @@ void IdentityDialog::setIdentity(KIdentityManagement::Identity &ident)
mSMIMEEncryptionKeyRequester
->
setDefaultKey
(
QLatin1String
(
ident
.
smimeEncryptionKey
()));
mPreferredCryptoMessageFormat
->
setCurrentIndex
(
format2cb
(
Kleo
::
stringToCryptoMessageFormat
(
ident
.
preferredCryptoMessageFormat
())));
mAutocrypt
->
setChecked
(
ident
.
autocryptEnabled
());
mAutoSign
->
setChecked
(
ident
.
pgpAutoSign
());
mAutoEncrypt
->
setChecked
(
ident
.
pgpAutoEncrypt
());
...
...
@@ -952,6 +958,7 @@ void IdentityDialog::updateIdentity(KIdentityManagement::Identity &ident)
ident
.
setSMIMESigningKey
(
mSMIMESigningKeyRequester
->
currentKey
().
primaryFingerprint
());
ident
.
setSMIMEEncryptionKey
(
mSMIMEEncryptionKeyRequester
->
currentKey
().
primaryFingerprint
());
ident
.
setPreferredCryptoMessageFormat
(
QLatin1String
(
Kleo
::
cryptoMessageFormatToString
(
cb2format
(
mPreferredCryptoMessageFormat
->
currentIndex
()))));
ident
.
setAutocryptEnabled
(
mAutocrypt
->
isChecked
());
ident
.
setPgpAutoSign
(
mAutoSign
->
isChecked
());
ident
.
setPgpAutoEncrypt
(
mAutoEncrypt
->
isChecked
());
// "Advanced" tab:
...
...
src/identity/identitydialog.h
View file @
d5f34a6d
...
...
@@ -105,6 +105,7 @@ private:
KeySelectionCombo
*
mSMIMESigningKeyRequester
=
nullptr
;
KeySelectionCombo
*
mSMIMEEncryptionKeyRequester
=
nullptr
;
QComboBox
*
mPreferredCryptoMessageFormat
=
nullptr
;
QComboBox
*
mAutocrypt
=
nullptr
;
QCheckBox
*
mAutoSign
=
nullptr
;
QCheckBox
*
mAutoEncrypt
=
nullptr
;
// "advanced" tab:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment