diff options
author | saturneric <[email protected]> | 2025-01-21 20:25:28 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-01-21 20:25:28 +0000 |
commit | 348102421a436bf64f10bbfa721696992ef6bfc4 (patch) | |
tree | 31b8a8eb5b69a2db98280e5f30e3035e0d5df330 /src/ui/widgets/KeyList.cpp | |
parent | refactor: using qt containers instead of std containers (diff) | |
parent | ts: correct Italian translation (diff) | |
download | GpgFrontend-348102421a436bf64f10bbfa721696992ef6bfc4.tar.gz GpgFrontend-348102421a436bf64f10bbfa721696992ef6bfc4.zip |
Merge branch 'develop' into dev/2.1.6/main
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index d6eeaf55..a7309725 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -33,7 +33,6 @@ #include "core/function/GlobalSettingStation.h" #include "core/function/gpg/GpgKeyGetter.h" -#include "core/module/ModuleManager.h" #include "core/utils/GpgUtils.h" #include "ui/UISignalStation.h" #include "ui/UserInterfaceUtils.h" @@ -539,23 +538,6 @@ void KeyList::import_keys(const QByteArray& in_buffer) { (new KeyImportDetailDialog(current_gpg_context_channel_, result, this)); } -void KeyList::slot_double_clicked(const QModelIndex& index) { - if (ui_->keyGroupTab->size().isEmpty()) return; - - auto* key_table = qobject_cast<KeyTable*>(ui_->keyGroupTab->currentWidget()); - if (m_action_ != nullptr) { - const auto key = GpgKeyGetter::GetInstance(current_gpg_context_channel_) - .GetKey(key_table->GetKeyIdByRow(index.row())); - assert(key.IsGood()); - m_action_(key, this); - } -} - -void KeyList::SetDoubleClickedAction( - std::function<void(const GpgKey&, QWidget*)> action) { - this->m_action_ = std::move(action); -} - auto KeyList::GetSelectedKey() -> QString { if (ui_->keyGroupTab->size().isEmpty()) return {}; |