Skip to content
Snippets Groups Projects
Commit a8c52734 authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

TextRecording: read peer info before setting it

Otherwise m_hSha1 always contains empty sha1s and ContactMethods.

Change-Id: I0c312de542d415ab5924913a9532ce98e7248361
Tuleap: #270
parent a7ac2ddf
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment