Don't reset entry model if the same group is set.

This commit is contained in:
Florian Geyer 2012-05-13 14:53:08 +02:00
parent 746a535c7d
commit f836629dda

View File

@ -44,6 +44,10 @@ QModelIndex EntryModel::indexFromEntry(Entry* entry) const
void EntryModel::setGroup(Group* group) void EntryModel::setGroup(Group* group)
{ {
if (group == m_group) {
return;
}
beginResetModel(); beginResetModel();
if (m_group) { if (m_group) {