Fix for issue #11: in introspection do not create method twice

Emanoil Kotsev 5 years ago committed by Slávek Banko
parent 0321c2e829
commit f5d3a70a03
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

@ -1721,6 +1721,12 @@ void MethodGenerator::writeIntrospectionDataMethod(const Class& classData,
TQValueList<Method>::const_iterator endIt = classData.methods.end();
for (; it != endIt; ++it)
{
// prevent creating method twice in introspection when method is async
// TODO: how to add annotation
// <annotation name="org.freedesktop.DBus.GLib.Async"/>
// to such method if we skip it
if ((*it).async) continue;
if (firstMethod)
{
firstMethod = false;

Loading…
Cancel
Save