summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-08 18:00:29 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-12-02 15:02:54 +0100
commit8a63d3b7712a67818846c38cf0cda8cc1abb07b9 (patch)
treed5fb8db5b923d421244e4ca725fae791e079fc55
parentf44242c3f041dfa4e0f3df79c71554feadf9eb6b (diff)
downloaddbus-1-tqt-8a63d3b7712a67818846c38cf0cda8cc1abb07b9.tar.gz
dbus-1-tqt-8a63d3b7712a67818846c38cf0cda8cc1abb07b9.zip
Reset error object to succesful state in async calls
(cherry picked from commit df590f5efe1ab22549aa8896be5d3677b3523712)
-rw-r--r--tools/dbusxml2qt3/methodgen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/dbusxml2qt3/methodgen.cpp b/tools/dbusxml2qt3/methodgen.cpp
index ec569ab..5b63071 100644
--- a/tools/dbusxml2qt3/methodgen.cpp
+++ b/tools/dbusxml2qt3/methodgen.cpp
@@ -1260,6 +1260,9 @@ void MethodGenerator::writeProxyMethod(const TQString& className,
<< method.name << "\";" << endl;
stream << endl;
+ stream << " error = TQT_DBusError();";
+ stream << endl;
+
stream << " return (asyncCallId != 0);" << endl;
stream << "}" << endl;
stream << endl;