diff options
author | Orgad Shaneh <[email protected]> | 2024-04-01 08:44:15 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2024-04-02 04:53:11 +0000 |
commit | 5ea09e424d0fa18944a379b1d52bc6b00c153ce9 (patch) | |
tree | b407984fb7cb31293c85552c630361a067dc9083 | |
parent | 1d28b90037018e9134c7774c3d7823b0bb072101 (diff) |
TextEditor: Fix initial loading of behavior settings
Fixes: QTCREATORBUG-30606
Change-Id: I1b4d8fd47e528d0868969cf883401037c0cfe9ee
Reviewed-by: Christian Stenger <[email protected]>
-rw-r--r-- | src/plugins/texteditor/texteditorsettings.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp index 811852b8a84..356ae76fcd1 100644 --- a/src/plugins/texteditor/texteditorsettings.cpp +++ b/src/plugins/texteditor/texteditorsettings.cpp @@ -431,11 +431,13 @@ TextEditorSettings::TextEditorSettings() connect(this, &TextEditorSettings::fontSettingsChanged, this, updateGeneralMessagesFontSettings); updateGeneralMessagesFontSettings(); - connect(this, &TextEditorSettings::behaviorSettingsChanged, - this, [](const BehaviorSettings &bs) { + auto updateBehaviorSettings = [](const BehaviorSettings &bs) { Core::MessageManager::setWheelZoomEnabled(bs.m_scrollWheelZooming); FancyLineEdit::setCamelCaseNavigationEnabled(bs.m_camelCaseNavigation); - }); + }; + connect(this, &TextEditorSettings::behaviorSettingsChanged, + this, updateBehaviorSettings); + updateBehaviorSettings(globalBehaviorSettings()); } TextEditorSettings::~TextEditorSettings() |