summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-11-11 23:54:16 +0100
committerPetr Mrázek <peterix@gmail.com>2018-11-11 23:54:16 +0100
commitdefa911705421d9c6cfa91cd74ea987951cab94f (patch)
tree28a2f5977bdf77a272d6588409af83da404c74ed /api
parent17e09a292dbf864f7a618d6cc446331aeb480a15 (diff)
downloadMultiMC-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.
Diffstat (limited to 'api')
-rw-r--r--api/logic/InstanceList.cpp2
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();
}
}