mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-19 12:24:41 -04:00
Handle Group::setIcon() manually instead of calling set().
That way we don't emit modified() in between setting the attributes.
This commit is contained in:
parent
ca5dd373ed
commit
cfe5b48bfd
1 changed files with 4 additions and 1 deletions
|
@ -186,11 +186,14 @@ void Group::setIcon(const Uuid& uuid)
|
|||
{
|
||||
Q_ASSERT(!uuid.isNull());
|
||||
|
||||
if (set(m_customIcon, uuid)) {
|
||||
if (m_customIcon != uuid) {
|
||||
m_customIcon = uuid;
|
||||
m_iconNumber = 0;
|
||||
|
||||
m_pixmapCacheKey = QPixmapCache::Key();
|
||||
|
||||
updateTimeinfo();
|
||||
Q_EMIT modified();
|
||||
Q_EMIT dataChanged(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue