mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-16 03:16:05 -04:00
fix #218 custom attribute like KeePass interface
This commit is contained in:
parent
7db7747cb0
commit
8408e7fdb4
@ -646,12 +646,17 @@ QString Entry::resolvePlaceholder(const QString& str) const
|
||||
const QList<QString> keyList = attributes()->keys();
|
||||
for (const QString& key : keyList) {
|
||||
Qt::CaseSensitivity cs = Qt::CaseInsensitive;
|
||||
QString k = key;
|
||||
|
||||
if (!EntryAttributes::isDefaultAttribute(key)) {
|
||||
cs = Qt::CaseSensitive;
|
||||
k.prepend("{S:");
|
||||
} else {
|
||||
k.prepend("{");
|
||||
}
|
||||
|
||||
QString k = key;
|
||||
k.prepend("{").append("}");
|
||||
|
||||
k.append("}");
|
||||
if (result.compare(k,cs)==0) {
|
||||
result.replace(result,attributes()->value(key));
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user