Fix QML to UTF-8, unless changed in editor

Task-id: QTCREATORBUG-3424
This commit is contained in:
mae
2010-12-20 18:10:50 +01:00
parent 96475f9553
commit 4226538ac3
6 changed files with 19 additions and 3 deletions

View File

@@ -831,7 +831,7 @@ void SessionManager::setEditorCodec(Core::IEditor *editor, const QString &fileNa
if (TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor*>(editor))
if (Project *project = projectForFile(fileName)) {
if (QTextCodec *codec = project->editorConfiguration()->defaultTextCodec())
textEditor->setTextCodec(codec);
textEditor->setTextCodec(codec, TextEditor::ITextEditor::TextCodecFromProjectSetting);
}
}