Mercurial > octave
changeset 27561:78b28d0af037
fix typo in call to QSettings::value function
* workspace-model.cc (workspace_model::notice_settings): Use default
value, not key for default value in call to QSettings::value.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 25 Oct 2019 00:41:16 -0400 |
parents | 3fcc650de22f |
children | d7876110e854 |
files | libgui/src/workspace-model.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/workspace-model.cc Fri Oct 25 00:38:06 2019 -0400 +++ b/libgui/src/workspace-model.cc Fri Oct 25 00:41:16 2019 -0400 @@ -240,7 +240,7 @@ QString class_chars = resource_manager::storage_class_chars (); m_enable_colors = - settings->value (ws_enable_colors.key, ws_enable_colors.key).toBool (); + settings->value (ws_enable_colors.key, ws_enable_colors.def).toBool (); for (int i = 0; i < class_chars.length (); i++) {