diff options
author | Saturneric <[email protected]> | 2021-12-16 18:18:38 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-16 18:18:38 +0000 |
commit | 2874ebd5e56a7da7f7e7c96da392199b296d909a (patch) | |
tree | e6b78bcbb33282e652cd47df59987fc5932725c7 /src/ui/FileEncryptionDialog.cpp | |
parent | Fixed Known Problem. (diff) | |
download | GpgFrontend-2874ebd5e56a7da7f7e7c96da392199b296d909a.tar.gz GpgFrontend-2874ebd5e56a7da7f7e7c96da392199b296d909a.zip |
Fixed & Improve.
1. Fixed Known Issues.
2. Improve UI.
Diffstat (limited to 'src/ui/FileEncryptionDialog.cpp')
-rwxr-xr-x | src/ui/FileEncryptionDialog.cpp | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/src/ui/FileEncryptionDialog.cpp b/src/ui/FileEncryptionDialog.cpp index aeba6497..6930c3c9 100755 --- a/src/ui/FileEncryptionDialog.cpp +++ b/src/ui/FileEncryptionDialog.cpp @@ -86,42 +86,44 @@ FileEncryptionDialog::FileEncryptionDialog(KeyIdArgsListPtr keyList, groupBox1->setLayout(gLayout); /*Setup KeyList*/ - + mKeyList = new KeyList(false, this); if (mAction == Verify) { - mKeyList = - new KeyList(KeyListRow::ONLY_SECRET_KEY, - KeyListColumn::NAME | KeyListColumn::EmailAddress | - KeyListColumn::Usage, - [](const GpgKey& key) -> bool { - if (key.disabled() || key.expired() || key.revoked()) - return false; - else - return true; - }); + mKeyList->addListGroupTab( + _("Default"), KeyListRow::ONLY_SECRET_KEY, + KeyListColumn::NAME | KeyListColumn::EmailAddress | + KeyListColumn::Usage, + [](const GpgKey& key) -> bool { + if (key.disabled() || key.expired() || key.revoked()) + return false; + else + return true; + }); } if (mAction == Encrypt) { - mKeyList = new KeyList(KeyListRow::ONLY_SECRET_KEY, - KeyListColumn::NAME | KeyListColumn::EmailAddress | - KeyListColumn::Usage, - [](const GpgKey& key) -> bool { - if (!key.CanEncrActual()) - return false; - else - return true; - }); + mKeyList->addListGroupTab(_("Default"), KeyListRow::ONLY_SECRET_KEY, + KeyListColumn::NAME | + KeyListColumn::EmailAddress | + KeyListColumn::Usage, + [](const GpgKey& key) -> bool { + if (!key.CanEncrActual()) + return false; + else + return true; + }); } if (mAction == Encrypt) { - mKeyList = new KeyList(KeyListRow::ONLY_SECRET_KEY, - KeyListColumn::NAME | KeyListColumn::EmailAddress | - KeyListColumn::Usage, - [](const GpgKey& key) -> bool { - if (!key.CanSignActual()) - return false; - else - return true; - }); + mKeyList->addListGroupTab(_("Default"), KeyListRow::ONLY_SECRET_KEY, + KeyListColumn::NAME | + KeyListColumn::EmailAddress | + KeyListColumn::Usage, + [](const GpgKey& key) -> bool { + if (!key.CanSignActual()) + return false; + else + return true; + }); } if (mAction == Decrypt) mKeyList->setDisabled(true); |