summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Rousskikh <ext-alexei.rousskikh@nokia.com>2012-04-02 12:26:19 -0400
committerAndrew Christian <andrew.christian@nokia.com>2012-04-04 22:25:20 +0200
commit7f6285f334a735f9245f83f80b9807a6eaa26aa8 (patch)
tree516df6fe2c5994fa7ee6f63150a3bb7ba943f86d
parent1f937b007859181bb464201776c6c03cfde541d6 (diff)
bug fix: replaced obsolete receive with readReadyMessage/processMessages
Change-Id: I160c450811b86add7c0c8fd0733054f6385aa735 Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
-rw-r--r--src/jsonclient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jsonclient.cpp b/src/jsonclient.cpp
index b16fd96..40f8d0a 100644
--- a/src/jsonclient.cpp
+++ b/src/jsonclient.cpp
@@ -133,8 +133,7 @@ bool JsonClient::connectTCP(const QString& hostname, int port)
connect(socket, SIGNAL(disconnected()), SLOT(handleSocketDisconnected()));
Q_D(JsonClient);
d->mStream.setDevice(socket);
- connect(&d->mStream, SIGNAL(receive(const QJsonObject&)),
- this, SIGNAL(receive(const QJsonObject&)));
+ connect(&d->mStream, SIGNAL(readyReadMessage()), this, SLOT(processMessages()));
return d->mStream.send(d->mRegistrationMessage);
}