diff options
author | erdgeist <erdgeist@bauklotz.fritz.box> | 2018-04-04 02:34:14 +0200 |
---|---|---|
committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2018-04-04 02:34:14 +0200 |
commit | 06c3fd419a6caa564deac48231df381cd13db738 (patch) | |
tree | c9f6e20e35580a692ec4a8a4f1f35e461235e50b /engine.c | |
parent | 3bf644b734f288095b7190f22f850e8cfaaa885b (diff) |
moving max x/y or the octave split sets config source to edit
Diffstat (limited to 'engine.c')
-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; |