aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/model/GpgKeyTableProxyModel.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-12 11:36:45 +0000
committersaturneric <[email protected]>2025-04-12 11:36:45 +0000
commite0264d85090dd119d48df28477db2fe3b17eb60a (patch)
treee7711bfe4f03c4b97eb2f37129b07a9ec5eb85d1 /src/ui/model/GpgKeyTableProxyModel.cpp
parentfix: wrong ui dialog order after switching apps (diff)
downloadGpgFrontend-e0264d85090dd119d48df28477db2fe3b17eb60a.tar.gz
GpgFrontend-e0264d85090dd119d48df28477db2fe3b17eb60a.zip
refactor: GpgKey and GpgSubKey
Diffstat (limited to 'src/ui/model/GpgKeyTableProxyModel.cpp')
-rw-r--r--src/ui/model/GpgKeyTableProxyModel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/model/GpgKeyTableProxyModel.cpp b/src/ui/model/GpgKeyTableProxyModel.cpp
index 9dc98bcd..746f3344 100644
--- a/src/ui/model/GpgKeyTableProxyModel.cpp
+++ b/src/ui/model/GpgKeyTableProxyModel.cpp
@@ -95,8 +95,7 @@ auto GpgKeyTableProxyModel::filterAcceptsRow(
auto index = sourceModel()->index(source_row, column, sourceParent);
infos << sourceModel()->data(index).toString();
- const auto uids = key.GetUIDs();
- for (const auto &uid : *uids) {
+ for (const auto &uid : key.UIDs()) {
infos << uid.GetUID();
}
}
@@ -109,7 +108,7 @@ auto GpgKeyTableProxyModel::filterAcceptsRow(
}
auto GpgKeyTableProxyModel::filterAcceptsColumn(
- int sourceColumn, const QModelIndex &sourceParent) const -> bool {
+ int sourceColumn, const QModelIndex & /*sourceParent*/) const -> bool {
switch (sourceColumn) {
case 0: {
return true;