diff --git a/src/tools/dbusxml2qt3/methodgen.cpp b/src/tools/dbusxml2qt3/methodgen.cpp index 4e407d5..3ba914e 100644 --- a/src/tools/dbusxml2qt3/methodgen.cpp +++ b/src/tools/dbusxml2qt3/methodgen.cpp @@ -541,6 +541,10 @@ static void writeNodeIntrospection(const Class& classData, stream << " TQDomDocument doc;" << endl; stream << " TQDomElement nodeElement = doc.createElement(\"node\");" << endl; + stream << " if ( !objectPath.isEmpty() && objectPath.compare(\"/\") != 0 )" << endl; + stream << " {" << endl; + stream << " nodeElement.setAttribute ( \"name\", objectPath );" << endl; + stream << " }" << endl; stream << " TQDomElement interfaceElement = doc.createElement(\"interface\");" << endl; stream << " org::freedesktop::DBus::Introspectable"