MCPcopy Create free account
hub / github.com/IJHack/QtPass / markSecretKeys

Method markSecretKeys

src/usersdialog.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void UsersDialog::markSecretKeys(QList<UserInfo> &users) {
84 QList<UserInfo> secret_keys = QtPassSettings::getPass()->listKeys("", true);
85 QSet<QString> secretKeyIds;
86 for (const UserInfo &sec : secret_keys) {
87 secretKeyIds.insert(sec.key_id);
88 }
89 for (auto &user : users) {
90 if (secretKeyIds.contains(user.key_id)) {
91 user.have_secret = true;
92 }
93 }
94}
95
96void UsersDialog::loadRecipients() {
97 int count = 0;

Callers

nothing calls this directly

Calls 1

listKeysMethod · 0.80

Tested by

no test coverage detected