mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-23 15:00:47 -04:00
Prevent duplicate characters in "Also choose from" field of password generator (#9803)
* Fixes #9797
This commit is contained in:
parent
07232f04c0
commit
ce01f6d7cd
1 changed files with 4 additions and 2 deletions
|
@ -261,9 +261,11 @@ QVector<PasswordGroup> PasswordGenerator::passwordGroups() const
|
|||
if (!m_custom.isEmpty()) {
|
||||
PasswordGroup group;
|
||||
|
||||
for (auto ch : m_custom) {
|
||||
for (const auto& ch : m_custom) {
|
||||
if (!group.contains(ch)) {
|
||||
group.append(ch);
|
||||
}
|
||||
}
|
||||
|
||||
passwordGroups.append(group);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue