diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2023-06-13 12:41:54 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-06-13 11:53:50 +0000 |
commit | 39d9edbddf8bde018d307c0b796a074921e55a79 (patch) | |
tree | ba64ec49d13a3e7b4fc5ef7efc2d962e2cd7da15 /src/plugins/projectexplorer/appoutputpane.cpp | |
parent | c547c8615f2ec90ad82c4cfa7a7fb02d8a6af921 (diff) |
ProjectExplorer: Fix off-by-factor-of-100 bug
...when serializing the output panes' "max char count" setting.
Introduced in c8980478805ed6bcdfbf2965cbf6c03492d804e6.
Change-Id: I0ed920efe3ed5b036b60b86ae9619ad9c154955e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r-- | src/plugins/projectexplorer/appoutputpane.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 3c76c2e62a..b8ce9417e7 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -535,7 +535,7 @@ void AppOutputPane::storeSettings() const s->setValueWithDefault(WRAP_OUTPUT_KEY, m_settings.wrapOutput, kWrapOutputDefault); s->setValueWithDefault(MAX_LINES_KEY, m_settings.maxCharCount / 100, - Core::Constants::DEFAULT_MAX_CHAR_COUNT); + Core::Constants::DEFAULT_MAX_CHAR_COUNT / 100); } void AppOutputPane::loadSettings() @@ -551,7 +551,7 @@ void AppOutputPane::loadSettings() m_settings.mergeChannels = s->value(MERGE_CHANNELS_KEY, kMergeChannelsDefault).toBool(); m_settings.wrapOutput = s->value(WRAP_OUTPUT_KEY, kWrapOutputDefault).toBool(); m_settings.maxCharCount = s->value(MAX_LINES_KEY, - Core::Constants::DEFAULT_MAX_CHAR_COUNT).toInt() * 100; + Core::Constants::DEFAULT_MAX_CHAR_COUNT / 100).toInt() * 100; } void AppOutputPane::showTabFor(RunControl *rc) |