aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-02 21:35:16 +0000
committerSaturneric <[email protected]>2021-12-02 21:35:16 +0000
commit1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc (patch)
tree58cabfa5c0065632b97823b6e6f068c04f1fa2e9 /src/ui/MainWindow.cpp
parentFix and Modified. (diff)
downloadGpgFrontend-1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc.tar.gz
GpgFrontend-1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc.zip
Fixed.
1. Fixed known issue in File Operations.
Diffstat (limited to '')
-rw-r--r--src/ui/MainWindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/MainWindow.cpp b/src/ui/MainWindow.cpp
index b9251243..31271ef1 100644
--- a/src/ui/MainWindow.cpp
+++ b/src/ui/MainWindow.cpp
@@ -65,10 +65,7 @@ void MainWindow::init() noexcept {
KeyListColumn::Usage | KeyListColumn::Validity,
this);
mKeyList->setFilter([](const GpgKey& key) -> bool {
- if (key.revoked() || key.disabled() || key.expired())
- return false;
- else
- return true;
+ return !(key.revoked() || key.disabled() || key.expired());
});
mKeyList->slotRefresh();