Commit f14f9d1f authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

simplify copying of map

parent ffd428f2
......@@ -1749,17 +1749,9 @@ bool EditorManager::restoreState(const QByteArray &state)
if (version != "EditorManagerV4")
return false;
QMap<QString, QVariant> editorstates;
stream >> editorstates;
QMapIterator<QString, QVariant> i(editorstates);
while (i.hasNext()) {;
m_d->m_editorStates.insert(i.key(), i.value());
stream >> m_d->m_editorStates;
int editorCount = 0;
stream >> editorCount;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment