diff options
Diffstat (limited to 'ui/qt/preference_editor_frame.cpp')
-rw-r--r-- | ui/qt/preference_editor_frame.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/preference_editor_frame.cpp b/ui/qt/preference_editor_frame.cpp index 429d4aea12..e9c008ea1c 100644 --- a/ui/qt/preference_editor_frame.cpp +++ b/ui/qt/preference_editor_frame.cpp @@ -96,6 +96,7 @@ void PreferenceEditorFrame::editPreference(preference *pref, pref_module *module switch (prefs_get_type(pref_)) { case PREF_UINT: + case PREF_DECODE_AS_UINT: new_uint_ = prefs_get_uint_value_real(pref_, pref_stashed); connect(ui->preferenceLineEdit, SIGNAL(textEdited(QString)), this, SLOT(uintLineEditTextEdited(QString))); @@ -108,6 +109,7 @@ void PreferenceEditorFrame::editPreference(preference *pref, pref_module *module show = true; break; case PREF_RANGE: + case PREF_DECODE_AS_RANGE: wmem_free(NULL, new_range_); new_range_ = range_copy(NULL, prefs_get_range_value_real(pref_, pref_stashed)); connect(ui->preferenceLineEdit, SIGNAL(textEdited(QString)), @@ -190,12 +192,14 @@ void PreferenceEditorFrame::on_buttonBox_accepted() bool apply = false; switch(prefs_get_type(pref_)) { case PREF_UINT: + case PREF_DECODE_AS_UINT: apply = prefs_set_uint_value(pref_, new_uint_, pref_stashed); break; case PREF_STRING: apply = prefs_set_string_value(pref_, new_str_.toStdString().c_str(), pref_stashed); break; case PREF_RANGE: + case PREF_DECODE_AS_RANGE: apply = prefs_set_range_value(pref_, new_range_, pref_stashed); break; default: |