mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 08:19:47 -05:00
Don't modify the protected status of default attributes.
They are handled by Metadata::protect*.
This commit is contained in:
parent
3d7479c67b
commit
38585663e1
@ -283,27 +283,27 @@ void Entry::addAutoTypeAssociation(const AutoTypeAssociation& assoc)
|
|||||||
|
|
||||||
void Entry::setTitle(const QString& title)
|
void Entry::setTitle(const QString& title)
|
||||||
{
|
{
|
||||||
m_attributes->set("Title", title);
|
m_attributes->set("Title", title, m_attributes->isProtected("Title"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entry::setUrl(const QString& url)
|
void Entry::setUrl(const QString& url)
|
||||||
{
|
{
|
||||||
m_attributes->set("URL", url);
|
m_attributes->set("URL", url, m_attributes->isProtected("URL"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entry::setUsername(const QString& username)
|
void Entry::setUsername(const QString& username)
|
||||||
{
|
{
|
||||||
m_attributes->set("UserName", username);
|
m_attributes->set("UserName", username, m_attributes->isProtected("UserName"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entry::setPassword(const QString& password)
|
void Entry::setPassword(const QString& password)
|
||||||
{
|
{
|
||||||
m_attributes->set("Password", password);
|
m_attributes->set("Password", password, m_attributes->isProtected("Password"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Entry::setNotes(const QString& notes)
|
void Entry::setNotes(const QString& notes)
|
||||||
{
|
{
|
||||||
m_attributes->set("Notes", notes);
|
m_attributes->set("Notes", notes, m_attributes->isProtected("Notes"));
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<Entry*> Entry::historyItems()
|
QList<Entry*> Entry::historyItems()
|
||||||
|
Loading…
Reference in New Issue
Block a user