diff options
-rw-r--r-- | engine.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -149,6 +149,10 @@ engine_select_config(ConfigSelect sel) { | |||
149 | ConfigSelect | 149 | ConfigSelect |
150 | engine_change_selected(int off) | 150 | engine_change_selected(int off) |
151 | { | 151 | { |
152 | /* Assume source has changed unless no config is selected, in default branch */ | ||
153 | ConfigSource backup = g_config_source; | ||
154 | g_config_source = source_edit; | ||
155 | |||
152 | switch(g_selected_config) { | 156 | switch(g_selected_config) { |
153 | case sel_min_y: | 157 | case sel_min_y: |
154 | g_min_y += off; | 158 | g_min_y += off; |
@@ -172,6 +176,7 @@ engine_change_selected(int off) | |||
172 | if (g_midi_two_octave_split>100) g_midi_two_octave_split = 100; | 176 | if (g_midi_two_octave_split>100) g_midi_two_octave_split = 100; |
173 | break; | 177 | break; |
174 | default: | 178 | default: |
179 | g_config_source = backup; | ||
175 | break; | 180 | break; |
176 | } | 181 | } |
177 | return g_selected_config; | 182 | return g_selected_config; |