mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-05 11:54:59 -04:00
Emit modified() after all icon attributes have been set in Entry::setIcon().
This commit is contained in:
parent
674909f635
commit
4334824e85
1 changed files with 4 additions and 1 deletions
|
@ -234,10 +234,13 @@ void Entry::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();
|
||||||
|
|
||||||
|
Q_EMIT modified();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue