mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-27 18:10:31 -05: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());
|
Q_ASSERT(!uuid.isNull());
|
||||||
|
|
||||||
if (set(m_customIcon, uuid)) {
|
if (m_customIcon != uuid) {
|
||||||
|
m_customIcon = uuid;
|
||||||
m_iconNumber = 0;
|
m_iconNumber = 0;
|
||||||
|
|
||||||
m_pixmapCacheKey = QPixmapCache::Key();
|
m_pixmapCacheKey = QPixmapCache::Key();
|
||||||
|
|
||||||
|
updateTimeinfo();
|
||||||
|
Q_EMIT modified();
|
||||||
Q_EMIT dataChanged(this);
|
Q_EMIT dataChanged(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue