InstrumentSelector::InstrumentSelector()
: _reasonable_synth_id(0)
+ , _gmsynth_id(UINT32_MAX)
{
refill ();
set_model(_instrument_list);
pack_start(_instrument_list_columns.name);
if (selected.empty ()) {
- set_active(_reasonable_synth_id);
+ if (_gmsynth_id != UINT32_MAX) {
+ set_active(_gmsynth_id);
+ } else {
+ set_active(_reasonable_synth_id);
+ }
} else {
TreeModel::Children rows = _instrument_list->children();
TreeModel::Children::iterator i;
if (p->unique_id == "https://community.ardour.org/node/7596") {
_reasonable_synth_id = n;
}
+ if (p->unique_id == "http://gareus.org/oss/lv2/gmsynth") {
+ _reasonable_synth_id = n;
+ }
prev = p->name;
n++;
}