From 38585663e1031aa2987191bf2345687560b2d7ae Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 14 Apr 2012 19:41:56 +0200 Subject: [PATCH] Don't modify the protected status of default attributes. They are handled by Metadata::protect*. --- src/core/Entry.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 83a403a8..d0770f9d 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -283,27 +283,27 @@ void Entry::addAutoTypeAssociation(const AutoTypeAssociation& assoc) 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) { - m_attributes->set("URL", url); + m_attributes->set("URL", url, m_attributes->isProtected("URL")); } 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) { - m_attributes->set("Password", password); + m_attributes->set("Password", password, m_attributes->isProtected("Password")); } void Entry::setNotes(const QString& notes) { - m_attributes->set("Notes", notes); + m_attributes->set("Notes", notes, m_attributes->isProtected("Notes")); } QList Entry::historyItems()