retain route i/o choice across show()'s of the AddRouteDialog
This commit is contained in:
parent
d403eaf1a0
commit
06b12bef62
@ -28,6 +28,7 @@
|
||||
|
||||
#include "pbd/error.h"
|
||||
#include "pbd/convert.h"
|
||||
|
||||
#include "gtkmm2ext/utils.h"
|
||||
|
||||
#include "ardour/plugin_manager.h"
|
||||
@ -71,12 +72,8 @@ AddRouteDialog::AddRouteDialog ()
|
||||
channel_combo.set_name (X_("ChannelCountSelector"));
|
||||
mode_combo.set_name (X_("ChannelCountSelector"));
|
||||
|
||||
refill_channel_setups ();
|
||||
refill_route_groups ();
|
||||
refill_track_modes ();
|
||||
|
||||
channel_combo.set_active_text (channel_combo_strings.front());
|
||||
|
||||
track_bus_combo.append_text (_("Audio Tracks"));
|
||||
track_bus_combo.append_text (_("MIDI Tracks"));
|
||||
track_bus_combo.append_text (_("Audio+MIDI Tracks"));
|
||||
@ -471,6 +468,9 @@ AddRouteDialog::refill_channel_setups ()
|
||||
ChannelSetup chn;
|
||||
|
||||
route_templates.clear ();
|
||||
|
||||
string channel_current_choice = channel_combo.get_active_text();
|
||||
|
||||
channel_combo_strings.clear ();
|
||||
channel_setups.clear ();
|
||||
|
||||
@ -534,8 +534,13 @@ AddRouteDialog::refill_channel_setups ()
|
||||
}
|
||||
|
||||
set_popdown_strings (channel_combo, channel_combo_strings);
|
||||
|
||||
if (!channel_current_choice.empty()) {
|
||||
channel_combo.set_active_text (channel_current_choice);
|
||||
} else {
|
||||
channel_combo.set_active_text (channel_combo_strings.front());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
AddRouteDialog::add_route_group (RouteGroup* g)
|
||||
|
Loading…
Reference in New Issue
Block a user