mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
retain route i/o choice across show()'s of the AddRouteDialog
This commit is contained in:
parent
d403eaf1a0
commit
06b12bef62
1 changed files with 10 additions and 5 deletions
|
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
#include "pbd/error.h"
|
#include "pbd/error.h"
|
||||||
#include "pbd/convert.h"
|
#include "pbd/convert.h"
|
||||||
|
|
||||||
#include "gtkmm2ext/utils.h"
|
#include "gtkmm2ext/utils.h"
|
||||||
|
|
||||||
#include "ardour/plugin_manager.h"
|
#include "ardour/plugin_manager.h"
|
||||||
|
|
@ -71,12 +72,8 @@ AddRouteDialog::AddRouteDialog ()
|
||||||
channel_combo.set_name (X_("ChannelCountSelector"));
|
channel_combo.set_name (X_("ChannelCountSelector"));
|
||||||
mode_combo.set_name (X_("ChannelCountSelector"));
|
mode_combo.set_name (X_("ChannelCountSelector"));
|
||||||
|
|
||||||
refill_channel_setups ();
|
|
||||||
refill_route_groups ();
|
|
||||||
refill_track_modes ();
|
refill_track_modes ();
|
||||||
|
|
||||||
channel_combo.set_active_text (channel_combo_strings.front());
|
|
||||||
|
|
||||||
track_bus_combo.append_text (_("Audio Tracks"));
|
track_bus_combo.append_text (_("Audio Tracks"));
|
||||||
track_bus_combo.append_text (_("MIDI Tracks"));
|
track_bus_combo.append_text (_("MIDI Tracks"));
|
||||||
track_bus_combo.append_text (_("Audio+MIDI Tracks"));
|
track_bus_combo.append_text (_("Audio+MIDI Tracks"));
|
||||||
|
|
@ -471,6 +468,9 @@ AddRouteDialog::refill_channel_setups ()
|
||||||
ChannelSetup chn;
|
ChannelSetup chn;
|
||||||
|
|
||||||
route_templates.clear ();
|
route_templates.clear ();
|
||||||
|
|
||||||
|
string channel_current_choice = channel_combo.get_active_text();
|
||||||
|
|
||||||
channel_combo_strings.clear ();
|
channel_combo_strings.clear ();
|
||||||
channel_setups.clear ();
|
channel_setups.clear ();
|
||||||
|
|
||||||
|
|
@ -534,7 +534,12 @@ AddRouteDialog::refill_channel_setups ()
|
||||||
}
|
}
|
||||||
|
|
||||||
set_popdown_strings (channel_combo, channel_combo_strings);
|
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());
|
channel_combo.set_active_text (channel_combo_strings.front());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue