mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-14 16:57:32 -05:00
Emit modified() after all icon attributes have been set in Entry::setIcon().
This commit is contained in:
parent
674909f635
commit
4334824e85
@ -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…
Reference in New Issue
Block a user