diff options
author | saturneric <[email protected]> | 2025-02-02 20:03:21 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-02-02 20:03:21 +0000 |
commit | 39387a78e2e056fa946f92ec7509ef73ad3ecfa3 (patch) | |
tree | ebb8e2376c8a898b13dc862c2b5a8d3c07b6710b /src/ui/main_window/MainWindowGpgOperaFunction.cpp | |
parent | refactor: rewrite subkey generate dialog and fix some issues discovered (diff) | |
download | GpgFrontend-39387a78e2e056fa946f92ec7509ef73ad3ecfa3.tar.gz GpgFrontend-39387a78e2e056fa946f92ec7509ef73ad3ecfa3.zip |
refactor: make some function names shorter
Diffstat (limited to 'src/ui/main_window/MainWindowGpgOperaFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowGpgOperaFunction.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ui/main_window/MainWindowGpgOperaFunction.cpp b/src/ui/main_window/MainWindowGpgOperaFunction.cpp index 8395c8f8..984acb2f 100644 --- a/src/ui/main_window/MainWindowGpgOperaFunction.cpp +++ b/src/ui/main_window/MainWindowGpgOperaFunction.cpp @@ -56,8 +56,7 @@ auto MainWindow::encrypt_operation_key_validate( contexts->keys = {}; } else { contexts->keys = check_keys_helper( - key_ids, - [](const GpgKey& key) { return key.IsHasActualEncryptionCapability(); }, + key_ids, [](const GpgKey& key) { return key.IsHasActualEncrCap(); }, tr("The selected keypair cannot be used for encryption.")); if (contexts->keys.empty()) return false; } @@ -205,8 +204,7 @@ void MainWindow::SlotSign() { auto key_ids = m_key_list_->GetChecked(); contexts->keys = check_keys_helper( - key_ids, - [](const GpgKey& key) { return key.IsHasActualSigningCapability(); }, + key_ids, [](const GpgKey& key) { return key.IsHasActualSignCap(); }, tr("The selected key contains a key that does not actually have a " "sign usage.")); if (contexts->keys.empty()) return; @@ -259,8 +257,7 @@ void MainWindow::SlotEncryptSign() { auto key_ids = m_key_list_->GetChecked(); contexts->keys = check_keys_helper( - key_ids, - [](const GpgKey& key) { return key.IsHasActualEncryptionCapability(); }, + key_ids, [](const GpgKey& key) { return key.IsHasActualEncrCap(); }, tr("The selected keypair cannot be used for encryption.")); if (contexts->keys.empty()) return; @@ -375,8 +372,7 @@ void MainWindow::SlotFileSign(const QStringList& paths) { auto key_ids = m_key_list_->GetChecked(); contexts->keys = check_keys_helper( - key_ids, - [](const GpgKey& key) { return key.IsHasActualSigningCapability(); }, + key_ids, [](const GpgKey& key) { return key.IsHasActualSignCap(); }, tr("The selected key contains a key that does not actually have a " "sign usage.")); if (contexts->keys.empty()) return; @@ -459,8 +455,7 @@ void MainWindow::SlotFileEncryptSign(const QStringList& paths) { auto key_ids = m_key_list_->GetChecked(); contexts->keys = check_keys_helper( - key_ids, - [](const GpgKey& key) { return key.IsHasActualEncryptionCapability(); }, + key_ids, [](const GpgKey& key) { return key.IsHasActualEncrCap(); }, tr("The selected keypair cannot be used for encryption.")); if (contexts->keys.empty()) return; |