summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2018-04-04 02:34:14 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2018-04-04 02:34:14 +0200
commit06c3fd419a6caa564deac48231df381cd13db738 (patch)
treec9f6e20e35580a692ec4a8a4f1f35e461235e50b
parent3bf644b734f288095b7190f22f850e8cfaaa885b (diff)
moving max x/y or the octave split sets config source to edit
-rw-r--r--engine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine.c b/engine.c
index aae652f..eafc9ab 100644
--- a/engine.c
+++ b/engine.c
@@ -149,6 +149,10 @@ engine_select_config(ConfigSelect sel) {
149ConfigSelect 149ConfigSelect
150engine_change_selected(int off) 150engine_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;