From 1738aa06021b232f1fb94121d3da63aa343e51a9 Mon Sep 17 00:00:00 2001 From: Emanoil Kotsev Date: Fri, 28 Jun 2019 19:36:41 +0000 Subject: Fix regression from recent signals and async changes Signed-off-by: Emanoil Kotsev --- src/tools/dbusxml2qt3/classgen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/dbusxml2qt3/classgen.cpp b/src/tools/dbusxml2qt3/classgen.cpp index b8e6040..0954e7c 100644 --- a/src/tools/dbusxml2qt3/classgen.cpp +++ b/src/tools/dbusxml2qt3/classgen.cpp @@ -681,7 +681,11 @@ static void writeSignalDeclarations(const Class& classData, Class::Role role, case Class::Proxy: stream << "signals:" << endl; - stream << " void AsyncErrorResponseDetected(int asyncCallId, const TQT_DBusError error);" << endl << endl; + if (!classData.asyncReplySignals.isEmpty()) + { + stream << " void AsyncErrorResponseDetected(int asyncCallId, " + << "const TQT_DBusError error);" << endl << endl; + } prefix = " void "; break; -- cgit v1.2.1