aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Papierkowski <lie@spyro-soft.com>2025-12-12 12:20:49 +0100
committerlie <lie@spyro-soft.com>2025-12-12 15:04:24 +0000
commit8d8a595b1ae7ed0ac6f3f735fc6130cf851222c6 (patch)
tree9562bacb37d9cd382261cfa5483c4985a6420656
parent18d2bd601f4f0a32bf61a547d979ec1d209750c2 (diff)
Lua: Fix QtcButton onClicked not working due to missing guard18.0
Change-Id: Ie9fcfbce088c3b9f8f6e20e55bb2b7ba63025206 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
-rw-r--r--src/plugins/lua/bindings/gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/bindings/gui.cpp b/src/plugins/lua/bindings/gui.cpp
index b6f25bdf4b3..f4d7bd8da36 100644
--- a/src/plugins/lua/bindings/gui.cpp
+++ b/src/plugins/lua/bindings/gui.cpp
@@ -625,8 +625,8 @@ void setupGuiModule()
auto qtcButton = gui.new_usertype<Utils::QtcWidgets::Button>(
"QtcButton",
sol::call_constructor,
- sol::factories([](const sol::table &children) {
- return constructWidgetType<Utils::QtcWidgets::Button>(children, nullptr);
+ sol::factories([guard](const sol::table &children) {
+ return constructWidgetType<Utils::QtcWidgets::Button>(children, guard);
}),
"setText",
&Utils::QtcWidgets::Button::setText,