summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/ComponentList.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-07-11 01:01:47 +0200
committerPetr Mrázek <peterix@gmail.com>2019-07-11 01:01:47 +0200
commitb9d429355255d10541fd14799c419a1b5aeeb128 (patch)
treea6842c81878ae32abf42c0bca6f635acbefac72c /api/logic/minecraft/ComponentList.cpp
parent5110b58def7e3e3118e6624959d6e5d561002c74 (diff)
downloadMultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar.gz
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar.lz
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.tar.xz
MultiMC-b9d429355255d10541fd14799c419a1b5aeeb128.zip
NOISSUE update component buttons some more when the versions change
Diffstat (limited to 'api/logic/minecraft/ComponentList.cpp')
-rw-r--r--api/logic/minecraft/ComponentList.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/logic/minecraft/ComponentList.cpp b/api/logic/minecraft/ComponentList.cpp
index e5c373a4..b2afdb17 100644
--- a/api/logic/minecraft/ComponentList.cpp
+++ b/api/logic/minecraft/ComponentList.cpp
@@ -635,6 +635,9 @@ void ComponentList::componentDataChanged()
qWarning() << "ComponentList got dataChenged signal from a non-Component!";
return;
}
+ if(objPtr->getID() == "net.minecraft") {
+ emit minecraftChanged();
+ }
// figure out which one is it... in a seriously dumb way.
int index = 0;
for (auto component: d->components)