Call m_group->database() instead of keeping a reference to Database in Entries.

Previously we didn't update m_db when the database of the group changed.
This commit is contained in:
Felix Geyer
2012-04-18 13:57:57 +02:00
parent 123e3766fe
commit a5ac1f2e80
2 changed files with 16 additions and 7 deletions

View File

@@ -111,6 +111,8 @@ private Q_SLOTS:
void emitDataChanged();
private:
const Database* database() const;
Uuid m_uuid;
int m_iconNumber;
Uuid m_customIcon;
@@ -128,7 +130,6 @@ private:
QList<Entry*> m_history;
QPointer<Group> m_group;
const Database* m_db;
QPixmapCache::Key m_pixmapCacheKey;
bool m_updateTimeinfo;