summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2019-06-28 19:36:41 +0000
committerEmanoil Kotsev <deloptes@gmail.com>2019-06-28 19:36:41 +0000
commit1738aa06021b232f1fb94121d3da63aa343e51a9 (patch)
treec05fab20a27499d112cec60a25feb446b7075ca5
parentbc23ccded57d2b4cfd9eefedca7e3c1e12d7e7ca (diff)
downloaddbus-1-tqt-1738aa06021b232f1fb94121d3da63aa343e51a9.tar.gz
dbus-1-tqt-1738aa06021b232f1fb94121d3da63aa343e51a9.zip
Fix regression from recent signals and async changes
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
-rw-r--r--src/tools/dbusxml2qt3/classgen.cpp6
1 files changed, 5 insertions, 1 deletions
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;