aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/model/GpgKeyTreeProxyModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/model/GpgKeyTreeProxyModel.cpp')
-rw-r--r--src/ui/model/GpgKeyTreeProxyModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/model/GpgKeyTreeProxyModel.cpp b/src/ui/model/GpgKeyTreeProxyModel.cpp
index 2f46f548..bff18dd6 100644
--- a/src/ui/model/GpgKeyTreeProxyModel.cpp
+++ b/src/ui/model/GpgKeyTreeProxyModel.cpp
@@ -28,7 +28,6 @@
#include "GpgKeyTreeProxyModel.h"
-#include "core/function/gpg/GpgKeyGetter.h"
#include "core/model/CacheObject.h"
#include "core/model/GpgKey.h"
#include "core/model/GpgKeyTreeModel.h"
@@ -83,7 +82,7 @@ auto GpgKeyTreeProxyModel::filterAcceptsRow(
auto index = sourceModel()->index(source_row, column, sourceParent);
infos << sourceModel()->data(index).toString();
- if (!key->IsSubKey()) {
+ if (key->KeyType() != GpgAbstractKeyType::kGPG_SUBKEY) {
for (const auto &uid : dynamic_cast<const GpgKey *>(key)->UIDs()) {
infos << uid.GetUID();
}