Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
1a22db0a
Commit
1a22db0a
authored
Feb 18, 2021
by
Ingo Klöcker
Browse files
Update certificate lineedit if the selected group was removed
GnuPG-bug-id: 5175, 5239
parent
1df94075
Pipeline
#51442
passed with stage
in 17 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/crypto/gui/certificatelineedit.cpp
View file @
1a22db0a
...
...
@@ -122,6 +122,13 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
QLatin1String
(
"<br/>"
)
+
i18n
(
"Click for details."
));
}
});
connect
(
KeyCache
::
instance
().
get
(),
&
Kleo
::
KeyCache
::
groupRemoved
,
this
,
[
this
]
(
const
KeyGroup
&
group
)
{
if
(
!
mGroup
.
isNull
()
&&
mGroup
.
source
()
==
group
.
source
()
&&
mGroup
.
id
()
==
group
.
id
())
{
// queue the update to ensure that the model has been updated
QMetaObject
::
invokeMethod
(
this
,
&
CertificateLineEdit
::
updateKey
,
Qt
::
QueuedConnection
);
}
});
connect
(
this
,
&
QLineEdit
::
editingFinished
,
this
,
&
CertificateLineEdit
::
editFinished
);
connect
(
this
,
&
QLineEdit
::
textChanged
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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