From e0bea1e46a8086b098248ec506b71e5f4512c70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 3 Dec 2017 15:57:21 +0100 Subject: [PATCH] NOISSUE watch added Component for changes in order to trigger ComponentList saves --- api/logic/minecraft/ComponentList.cpp | 1 + 1 file changed, 1 insertion(+) 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(); }