aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-07-13 07:39:41 +0000
committerSaturneric <[email protected]>2023-07-13 07:39:41 +0000
commit77838db2af8dc4d665cb4dc3d6b30e6d58683091 (patch)
tree62c1bd7251bfc52b6a72f1814093782a0c214231 /src/ui/main_window/MainWindowUI.cpp
parentfeat: support instant flush when save cache (diff)
downloadGpgFrontend-77838db2af8dc4d665cb4dc3d6b30e6d58683091.tar.gz
GpgFrontend-77838db2af8dc4d665cb4dc3d6b30e6d58683091.zip
feat: support searching keys
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index 77128ece..760561eb 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -609,7 +609,7 @@ void MainWindow::create_dock_windows() {
_("Default"), "default", KeyListRow::SECRET_OR_PUBLIC_KEY,
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
- [](const GpgKey& key) -> bool {
+ [](const GpgKey& key, const KeyTable&) -> bool {
return !(key.IsRevoked() || key.IsDisabled() || key.IsExpired());
});
@@ -617,7 +617,7 @@ void MainWindow::create_dock_windows() {
_("Favourite"), "favourite", KeyListRow::SECRET_OR_PUBLIC_KEY,
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
- [](const GpgKey& key) -> bool {
+ [](const GpgKey& key, const KeyTable&) -> bool {
return CommonUtils::GetInstance()->KeyExistsinFavouriteList(key);
});
@@ -625,7 +625,7 @@ void MainWindow::create_dock_windows() {
_("Only Public Key"), "only_public_key", KeyListRow::SECRET_OR_PUBLIC_KEY,
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
- [](const GpgKey& key) -> bool {
+ [](const GpgKey& key, const KeyTable&) -> bool {
return !key.IsPrivateKey() &&
!(key.IsRevoked() || key.IsDisabled() || key.IsExpired());
});
@@ -634,7 +634,7 @@ void MainWindow::create_dock_windows() {
_("Has Private Key"), "has_private_key", KeyListRow::SECRET_OR_PUBLIC_KEY,
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
- [](const GpgKey& key) -> bool {
+ [](const GpgKey& key, const KeyTable&) -> bool {
return key.IsPrivateKey() &&
!(key.IsRevoked() || key.IsDisabled() || key.IsExpired());
});