aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyList.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-10-26 14:20:13 +0000
committersaturneric <[email protected]>2024-10-26 14:20:13 +0000
commitaa90cf1eb97e39f99e622753bb0624ed8dff7775 (patch)
treeec2f334903f4d8e9a179dc88d46911a649c02c7d /src/ui/widgets/KeyList.cpp
parentfix: should check key status immediately after get it (diff)
downloadGpgFrontend-aa90cf1eb97e39f99e622753bb0624ed8dff7775.tar.gz
GpgFrontend-aa90cf1eb97e39f99e622753bb0624ed8dff7775.zip
fix: should select channel before any gpg operation
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r--src/ui/widgets/KeyList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index d98081f3..5994abda 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -523,8 +523,8 @@ void KeyList::dragEnterEvent(QDragEnterEvent* event) {
}
void KeyList::import_keys(const QByteArray& in_buffer) {
- auto result =
- GpgKeyImportExporter::GetInstance().ImportKey(GFBuffer(in_buffer));
+ auto result = GpgKeyImportExporter::GetInstance(current_gpg_context_channel_)
+ .ImportKey(GFBuffer(in_buffer));
(new KeyImportDetailDialog(current_gpg_context_channel_, result, this));
}