diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-11-11 23:54:16 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-11-11 23:54:16 +0100 |
commit | defa911705421d9c6cfa91cd74ea987951cab94f (patch) | |
tree | 28a2f5977bdf77a272d6588409af83da404c74ed | |
parent | 17e09a292dbf864f7a618d6cc446331aeb480a15 (diff) | |
download | MultiMC-defa911705421d9c6cfa91cd74ea987951cab94f.tar MultiMC-defa911705421d9c6cfa91cd74ea987951cab94f.tar.gz MultiMC-defa911705421d9c6cfa91cd74ea987951cab94f.tar.lz MultiMC-defa911705421d9c6cfa91cd74ea987951cab94f.tar.xz MultiMC-defa911705421d9c6cfa91cd74ea987951cab94f.zip |
NOISSUE fix groups not being updated in UI correctly
The model was not sending the appropriate signals.
-rw-r--r-- | api/logic/InstanceList.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/logic/InstanceList.cpp b/api/logic/InstanceList.cpp index 4a209454..ed4286e3 100644 --- a/api/logic/InstanceList.cpp +++ b/api/logic/InstanceList.cpp @@ -171,6 +171,8 @@ void InstanceList::setInstanceGroup(const InstanceId& id, const GroupId& name) if(changed) { m_groups.insert(name); + auto idx = getInstIndex(inst.get()); + emit dataChanged(index(idx), index(idx), {GroupRole}); saveGroupList(); } } |