Don't reset entry model if the same group is set.
This commit is contained in:
@@ -44,6 +44,10 @@ QModelIndex EntryModel::indexFromEntry(Entry* entry) const
|
||||
|
||||
void EntryModel::setGroup(Group* group)
|
||||
{
|
||||
if (group == m_group) {
|
||||
return;
|
||||
}
|
||||
|
||||
beginResetModel();
|
||||
|
||||
if (m_group) {
|
||||
|
||||
Reference in New Issue
Block a user