diff options
author | Felix Rohrbach <fxrh@gmx.de> | 2016-08-23 18:35:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 18:35:40 +0200 |
commit | 77d45e9afa195f7d715a5074b16f16c6b2d15235 (patch) | |
tree | b8c9f1d73e0eba48cc55194b06bbbeb97bc4e258 /connection.cpp | |
parent | da52097f1c90d7286aff27a84fc14b6b0793ff97 (diff) | |
parent | fb6df81fa9f224c94118fd79fea91ae15559c7e3 (diff) | |
download | libquotient-77d45e9afa195f7d715a5074b16f16c6b2d15235.tar.gz libquotient-77d45e9afa195f7d715a5074b16f16c6b2d15235.zip |
Merge pull request #18 from Fxrh/kitsune-use-qvector-with-nonpointers
Replaced QList<> with QVector<> where appropriate + minor code cleanup
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp index d6338191..904649bc 100644 --- a/connection.cpp +++ b/connection.cpp @@ -113,7 +113,11 @@ SyncJob* Connection::sync(int timeout) syncJob->setTimeout(timeout); connect( syncJob, &SyncJob::success, [=] () { d->data->setLastEvent(syncJob->nextBatch()); - d->processRooms(syncJob->roomData()); + for( const auto roomData: syncJob->roomData() ) + { + if ( Room* r = d->provideRoom(roomData.roomId) ) + r->updateData(roomData); + } emit syncDone(); }); connect( syncJob, &SyncJob::failure, [=] () { |