Commit 693781f2 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Store editor ids as utf8.

 * This is more compatible with what we did so far.

Reviewed-by: Erik Verbruggen
parent ee95ffcd
......@@ -1555,7 +1555,7 @@ QByteArray EditorManager::saveState() const
stream << entries.count();
foreach (OpenEditorsModel::Entry entry, entries) {
stream << entry.fileName() << entry.displayName() << entry.id();
stream << entry.fileName() << entry.displayName() << entry.id().toUtf8();
}
stream << m_d->m_splitter->saveState();
......@@ -1594,12 +1594,11 @@ bool EditorManager::restoreState(const QByteArray &state)
stream >> fileName;
QString displayName;
stream >> displayName;
QString id;
QByteArray id;
stream >> id;
if (!fileName.isEmpty() && !displayName.isEmpty()){
m_d->m_editorModel->addRestoredEditor(fileName, displayName, id);
}
if (!fileName.isEmpty() && !displayName.isEmpty())
m_d->m_editorModel->addRestoredEditor(fileName, displayName, QString::fromUtf8(id));
}
QByteArray splitterstates;
......
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