From 06c3fd419a6caa564deac48231df381cd13db738 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 4 Apr 2018 02:34:14 +0200 Subject: moving max x/y or the octave split sets config source to edit --- engine.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { ConfigSelect engine_change_selected(int off) { + /* Assume source has changed unless no config is selected, in default branch */ + ConfigSource backup = g_config_source; + g_config_source = source_edit; + switch(g_selected_config) { case sel_min_y: g_min_y += off; @@ -172,6 +176,7 @@ engine_change_selected(int off) if (g_midi_two_octave_split>100) g_midi_two_octave_split = 100; break; default: + g_config_source = backup; break; } return g_selected_config; -- cgit v1.2.3