Commit 850319e5 authored by Jarek Kobus's avatar Jarek Kobus

Apply changes of global tab settings to editors

Return global tab settings in case there are no
code style settings for passed languageId

Task-number: QTCREATORBUG-6429
Change-Id: Ieccd265fa03bfba0832d285a6443633dd27ba03a
Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
parent 5e0b7441
......@@ -368,7 +368,7 @@ ICodeStylePreferences *TextEditorSettings::codeStyle() const
ICodeStylePreferences *TextEditorSettings::codeStyle(const QString &languageId) const
{
return m_d->m_languageToCodeStyle.value(languageId);
return m_d->m_languageToCodeStyle.value(languageId, codeStyle());
}
QMap<QString, ICodeStylePreferences *> TextEditorSettings::codeStyles() const
......
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