diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index ff6f4e22..4f20bac9 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -93,8 +93,10 @@ void KeyList::init() { switch_context_action->setChecked(channel == current_gpg_context_channel_); connect(switch_context_action, &QAction::toggled, this, [this, channel](bool checked) { - current_gpg_context_channel_ = channel; - emit SignalRefreshDatabase(); + if (checked) { + current_gpg_context_channel_ = channel; + emit SignalRefreshDatabase(); + } }); gpg_context_groups->addAction(switch_context_action); gpg_context_menu->addAction(switch_context_action); |