diff options
Diffstat (limited to 'lib/syncdata.cpp')
-rw-r--r-- | lib/syncdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syncdata.cpp b/lib/syncdata.cpp index e6472e18..d0827ea4 100644 --- a/lib/syncdata.cpp +++ b/lib/syncdata.cpp @@ -192,7 +192,7 @@ void SyncData::parseJson(const QJsonObject& json, const QString& baseDir) for (size_t i = 0; i < JoinStateStrings.size(); ++i, ii <<= 1) { const auto rs = rooms.value(JoinStateStrings[i]).toObject(); // We have a Qt container on the right and an STL one on the left - roomData.reserve(static_cast<size_t>(rs.size())); + roomData.reserve(roomData.size() + static_cast<size_t>(rs.size())); for (auto roomIt = rs.begin(); roomIt != rs.end(); ++roomIt) { auto roomJson = roomIt->isObject() |