fix: harden Qt Wayland listener generation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/src/tools/qtwaylandscanner/qtwaylandscanner.cpp
|
||||
+++ b/src/tools/qtwaylandscanner/qtwaylandscanner.cpp
|
||||
@@ -1294,7 +1294,7 @@ bool Scanner::process()
|
||||
|
||||
printf(" void %s::init_listener()\n", interfaceName);
|
||||
printf(" {\n");
|
||||
- printf(" %s_add_listener(m_%s, &m_%s_listener, this);\n", interfaceName, interfaceName, interfaceName);
|
||||
+ printf(" if (m_%s) %s_add_listener(m_%s, &m_%s_listener, this);\n", interfaceName, interfaceName, interfaceName, interfaceName);
|
||||
printf(" }\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user