summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-12-03 15:57:21 +0100
committerPetr Mrázek <peterix@gmail.com>2017-12-03 15:57:21 +0100
commite0bea1e46a8086b098248ec506b71e5f4512c70f (patch)
treed2d68dc6466b9defca4195119c636578bd230082 /api
parent6a462d0778e27379c3b22b3a1a0339093819d3cf (diff)
downloadMultiMC-e0bea1e46a8086b098248ec506b71e5f4512c70f.tar
MultiMC-e0bea1e46a8086b098248ec506b71e5f4512c70f.tar.gz
MultiMC-e0bea1e46a8086b098248ec506b71e5f4512c70f.tar.lz
MultiMC-e0bea1e46a8086b098248ec506b71e5f4512c70f.tar.xz
MultiMC-e0bea1e46a8086b098248ec506b71e5f4512c70f.zip
NOISSUE watch added Component for changes in order to trigger ComponentList saves
Diffstat (limited to 'api')
-rw-r--r--api/logic/minecraft/ComponentList.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/logic/minecraft/ComponentList.cpp b/api/logic/minecraft/ComponentList.cpp
index 99a2fc82..93deef39 100644
--- a/api/logic/minecraft/ComponentList.cpp
+++ b/api/logic/minecraft/ComponentList.cpp
@@ -641,6 +641,7 @@ void ComponentList::insertComponent(size_t index, ComponentPtr component)
d->components.insert(index, component);
d->componentIndex[id] = component;
endInsertRows();
+ connect(component.get(), &Component::dataChanged, this, &ComponentList::componentDataChanged);
scheduleSave();
}