mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 03:46:49 -08:00
Update timeinfo of group only when properties of the group itself change.
This commit is contained in:
1 parent
34204f3281
commit
84d9d2ec47
2 files changed
+4
-5
No files matched your search
+2
-2
@@ -35,8 +35,6 @@ Group::Group()
|
||||
m_searchingEnabled = Inherit;
|
||||
|
||||
m_updateTimeinfo = true;
|
||||
|
||||
connect(this, SIGNAL(modified()), this, SLOT(updateTimeinfo()));
|
||||
}
|
||||
|
||||
Group::~Group()
|
||||
@@ -47,6 +45,7 @@ Group::~Group()
|
||||
template <class T> bool Group::set(T& property, const T& value) {
|
||||
if (property != value) {
|
||||
property = value;
|
||||
updateTimeinfo();
|
||||
Q_EMIT modified();
|
||||
return true;
|
||||
}
|
||||
@@ -177,6 +176,7 @@ void Group::setIcon(int iconNumber)
|
||||
|
||||
m_pixmapCacheKey = QPixmapCache::Key();
|
||||
|
||||
updateTimeinfo();
|
||||
Q_EMIT modified();
|
||||
Q_EMIT dataChanged(this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user