diff options
author | Saturneric <[email protected]> | 2021-08-29 10:49:58 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-29 10:49:58 +0000 |
commit | daaa83549d42395161e34a40e18c3615801b1501 (patch) | |
tree | 7ae4c67a31e9eea8a7bda4719fbdac3ac2e730a9 /src/ui/widgets/KeyList.cpp | |
parent | Update version settings. (diff) | |
download | GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.tar.gz GpgFrontend-daaa83549d42395161e34a40e18c3615801b1501.zip |
Start to rewrite gpg core.
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp index 9c9c6763..8a334e3e 100644 --- a/src/ui/widgets/KeyList.cpp +++ b/src/ui/widgets/KeyList.cpp @@ -26,7 +26,7 @@ #include <utility> -KeyList::KeyList(GpgME::GpgContext *ctx, +KeyList::KeyList(GpgFrontend::GpgContext *ctx, KeyListRow::KeyType selectType, KeyListColumn::InfoType infoType, QWidget *parent) @@ -175,13 +175,13 @@ void KeyList::slotRefresh() { QString usage; QTextStream usage_steam(&usage); - if (GpgME::GpgContext::checkIfKeyCanCert(*it)) + if (GpgFrontend::GpgContext::checkIfKeyCanCert(*it)) usage_steam << "C"; - if (GpgME::GpgContext::checkIfKeyCanEncr(*it)) + if (GpgFrontend::GpgContext::checkIfKeyCanEncr(*it)) usage_steam << "E"; - if (GpgME::GpgContext::checkIfKeyCanSign(*it)) + if (GpgFrontend::GpgContext::checkIfKeyCanSign(*it)) usage_steam << "S"; - if (GpgME::GpgContext::checkIfKeyCanAuth(*it)) + if (GpgFrontend::GpgContext::checkIfKeyCanAuth(*it)) usage_steam << "A"; auto *temp_usage = new QTableWidgetItem(usage); @@ -390,7 +390,7 @@ void KeyList::setFilter(std::function<bool(const GpgKey &)> filter) { void KeyList::slotDoubleClicked(const QModelIndex &index) { if (mAction != nullptr) { - const auto key = mCtx->getKeyById(buffered_keys[index.row()].id); + const auto key = mCtx->getKeyRefById(buffered_keys[index.row()].id); mAction(key, this); } |