diff options
author | Saturneric <[email protected]> | 2022-07-22 18:54:52 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-07-22 18:56:08 +0000 |
commit | ff73042072c1937c8ee20cabab3f16cf38d588b1 (patch) | |
tree | f269b6178a5318cbf1c7945bbcd6d7a0736d104f /src/ui/main_window/MainWindowFileSlotFunction.cpp | |
parent | refactor(ui): adjust file structure (diff) | |
download | GpgFrontend-ff73042072c1937c8ee20cabab3f16cf38d588b1.tar.gz GpgFrontend-ff73042072c1937c8ee20cabab3f16cf38d588b1.zip |
fix(ui): fix signer picker and other issues
1. signer picker can cancel its operation now
2. fix window title of "Export As Key Package"
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowFileSlotFunction.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp index 4ab23a22..526c27c0 100644 --- a/src/ui/main_window/MainWindowFileSlotFunction.cpp +++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp @@ -32,8 +32,8 @@ #include "core/function/gpg/GpgFileOpera.h" #include "core/function/gpg/GpgKeyGetter.h" #include "core/thread/Task.h" +#include "dialog/SignersPicker.h" #include "ui/UserInterfaceUtils.h" -#include "ui/widgets/SignersPicker.h" namespace GpgFrontend::UI { @@ -618,6 +618,9 @@ void MainWindow::SlotFileEncryptSign() { connect(signersPicker, &SignersPicker::finished, &loop, &QEventLoop::quit); loop.exec(); + // return when canceled + if (!signersPicker->GetStatus()) return; + auto signer_key_ids = signersPicker->GetCheckedSigners(); auto p_signer_keys = GpgKeyGetter::GetInstance().GetKeys(signer_key_ids); |