diff options
author | David Robillard <d@drobilla.net> | 2014-12-17 19:43:09 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-17 19:43:09 -0500 |
commit | d2cafbe95a5784b7c306c24b0008379a41a909f7 (patch) | |
tree | 03216b0bd933f4d774634a7f8e14965fcf79c990 /gtk2_ardour/patch_change_dialog.cc | |
parent | 6e912a0aa31313636e2957ec0aa97d4103ee117f (diff) |
Remove some aborts that don't really need to be.
Enforce PatchPrimaryKey sanity at the type level rather than attempting to
check for it everywhere.
Remove dead file.
Diffstat (limited to 'gtk2_ardour/patch_change_dialog.cc')
-rw-r--r-- | gtk2_ardour/patch_change_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/patch_change_dialog.cc b/gtk2_ardour/patch_change_dialog.cc index 23941e1545..9072801c83 100644 --- a/gtk2_ardour/patch_change_dialog.cc +++ b/gtk2_ardour/patch_change_dialog.cc @@ -285,7 +285,7 @@ PatchChangeDialog::set_active_patch_combo () boost::replace_all (n, "_", " "); MIDI::Name::PatchPrimaryKey const & key = (*j)->patch_primary_key (); - if (key.program_number == _program.get_value() - 1) { + if (key.program() == _program.get_value() - 1) { _ignore_signals = true; _patch_combo.set_active_text (n); _ignore_signals = false; |