Commit f14f9d1f authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

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;
QApplication::setOverrideCursor(Qt::WaitCursor);
stream >> editorstates;
QMapIterator<QString, QVariant> i(editorstates);
while (i.hasNext()) {
i.next();
m_d->m_editorStates.insert(i.key(), i.value());
}
stream >> m_d->m_editorStates;
int editorCount = 0;
stream >> editorCount;
......
Markdown is supported
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