| 81 | } |
| 82 | |
| 83 | void 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 | |
| 96 | void UsersDialog::loadRecipients() { |
| 97 | int count = 0; |