Commit c9f4e68f authored by Robert Loehning's avatar Robert Loehning Committed by Christian Kamm
Browse files

EditorConfiguration: Add missing check.



Change-Id: Ib8d9542e7d0cf413fb5f8e2b0597b7a772951078
Reviewed-by: default avatarChristian Kamm <christian.d.kamm@nokia.com>
parent 16cf161d
...@@ -239,7 +239,8 @@ void EditorConfiguration::fromMap(const QVariantMap &map) ...@@ -239,7 +239,8 @@ void EditorConfiguration::fromMap(const QVariantMap &map)
void EditorConfiguration::configureEditor(ITextEditor *textEditor) const void EditorConfiguration::configureEditor(ITextEditor *textEditor) const
{ {
BaseTextEditorWidget *baseTextEditor = qobject_cast<BaseTextEditorWidget *>(textEditor->widget()); BaseTextEditorWidget *baseTextEditor = qobject_cast<BaseTextEditorWidget *>(textEditor->widget());
baseTextEditor->setCodeStyle(codeStyle(baseTextEditor->languageSettingsId())); if (baseTextEditor)
baseTextEditor->setCodeStyle(codeStyle(baseTextEditor->languageSettingsId()));
if (!d->m_useGlobal) { if (!d->m_useGlobal) {
textEditor->setTextCodec(d->m_textCodec, ITextEditor::TextCodecFromProjectSetting); textEditor->setTextCodec(d->m_textCodec, ITextEditor::TextCodecFromProjectSetting);
if (baseTextEditor) if (baseTextEditor)
......
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