From a8c527345daaeb38510240f18891da1a8963c389 Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Thu, 28 Jan 2016 13:23:33 -0500 Subject: [PATCH] TextRecording: read peer info before setting it Otherwise m_hSha1 always contains empty sha1s and ContactMethods. Change-Id: I0c312de542d415ab5924913a9532ce98e7248361 Tuleap: #270 --- src/media/textrecording.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/textrecording.cpp b/src/media/textrecording.cpp index fcae5a4d..5c99c66c 100644 --- a/src/media/textrecording.cpp +++ b/src/media/textrecording.cpp @@ -556,8 +556,8 @@ void Serializable::Peers::read (const QJsonObject &json) for (int i = 0; i < a2.size(); ++i) { QJsonObject o = a2[i].toObject(); Peer* peer = new Peer(); - m_hSha1[peer->sha1] = peer->m_pContactMethod; peer->read(o); + m_hSha1[peer->sha1] = peer->m_pContactMethod; peers.append(peer); } -- GitLab