summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/sendrecieve.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/sendrecieve.cc b/client/sendrecieve.cc
index 95593c6..454ce30 100644
--- a/client/sendrecieve.cc
+++ b/client/sendrecieve.cc
@@ -144,6 +144,12 @@ void SendRecieve::myReadyReadHandler()
ba = tcpsocket->readAll();
ba_all.append(ba);
+
+ // HACK: To test if the received data is a complete xml document.
+ QDomDocument doc;
+ if(doc.setContent(ba_all)) {
+ has_result = true;
+ }
}
QByteArray SendRecieve::getResult()