From 1e3f1d13a6fb1bfc8f24be83032df1e92350dbcc Mon Sep 17 00:00:00 2001 From: Saturneric Date: Fri, 3 Dec 2021 05:35:16 +0800 Subject: Fixed. 1. Fixed known issue in File Operations. --- src/ui/MainWindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ui/MainWindow.cpp') 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(); -- cgit v1.2.3