aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/texteditor/texteditorsettings.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp
index 811852b8a8..356ae76fcd 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()