mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-10 04:51:10 -05:00
parent
3df2ad35cb
commit
e026f3d1eb
9 changed files with 224 additions and 74 deletions
|
|
@ -149,6 +149,33 @@ bool EntryAttributes::areCustomKeysDifferent(const EntryAttributes* other)
|
|||
return false;
|
||||
}
|
||||
|
||||
EntryAttributes& EntryAttributes::operator=(const EntryAttributes& other)
|
||||
{
|
||||
if (*this != other) {
|
||||
Q_EMIT aboutToBeReset();
|
||||
|
||||
m_attributes = other.m_attributes;
|
||||
m_protectedAttributes = other.m_protectedAttributes;
|
||||
|
||||
Q_EMIT reset();
|
||||
Q_EMIT modified();
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool EntryAttributes::operator==(const EntryAttributes& other) const
|
||||
{
|
||||
return (m_attributes == other.m_attributes
|
||||
&& m_protectedAttributes == other.m_protectedAttributes);
|
||||
}
|
||||
|
||||
bool EntryAttributes::operator!=(const EntryAttributes& other) const
|
||||
{
|
||||
return (m_attributes != other.m_attributes
|
||||
|| m_protectedAttributes != other.m_protectedAttributes);
|
||||
}
|
||||
|
||||
void EntryAttributes::clear()
|
||||
{
|
||||
Q_EMIT aboutToBeReset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue