aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/smtp/SenderPicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/smtp/SenderPicker.cpp')
-rw-r--r--src/ui/smtp/SenderPicker.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/smtp/SenderPicker.cpp b/src/ui/smtp/SenderPicker.cpp
index fcd3ba61..b2ad7f9f 100644
--- a/src/ui/smtp/SenderPicker.cpp
+++ b/src/ui/smtp/SenderPicker.cpp
@@ -34,10 +34,11 @@ GpgFrontend::UI::SenderPicker::SenderPicker(const KeyId& current_key_id,
// Setup KeyList
key_list_ = new KeyList(KeyMenuAbility::NONE, this);
- key_list_->addListGroupTab(
- _("Sender"), KeyListRow::ONLY_SECRET_KEY,
- KeyListColumn::NAME | KeyListColumn::EmailAddress,
- [](const GpgKey& key) -> bool { return key.CanSignActual(); });
+ key_list_->addListGroupTab(_("Sender"), KeyListRow::ONLY_SECRET_KEY,
+ KeyListColumn::NAME | KeyListColumn::EmailAddress,
+ [](const GpgKey& key) -> bool {
+ return key.IsHasActualSigningCapability();
+ });
key_list_->slotRefresh();
auto key_ids = std::make_unique<GpgFrontend::KeyIdArgsList>();