summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJonas Bernemann <jbernemann@gmx.de>2019-12-23 13:12:16 +0100
committerJonas Bernemann <jbernemann@gmx.de>2019-12-23 14:08:34 +0100
commit2f35cf4946e5f584352c1e57290595e9ffc0fd28 (patch)
treeb769d7086d82b0beb0b46e3312b9cd1d5e3ad9e0 /scene
parent48edf6333029fc961528892af190201197b44c40 (diff)
Fix issue with disconnecting events when font changes
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index ccc658b0aa..92e740889d 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -2286,7 +2286,7 @@ void Control::set_theme(const Ref<Theme> &p_theme) {
}
if (data.theme.is_valid()) {
- data.theme->connect("changed", this, "_theme_changed");
+ data.theme->connect("changed", this, "_theme_changed", varray(), CONNECT_DEFERRED);
}
}