diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-21 02:56:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-21 04:08:00 +0200 |
commit | bdd960cd99e41f51d9a8b98f27fe231ce1ed15db (patch) | |
tree | a75e8f2df8d30b7664e244d01dcc4f7cf87f8c6c /gtk2_ardour | |
parent | 7d5b7d538e207a9df4224814e7ebcc0cd7ee259b (diff) |
Update preferences when Ctrl-surfaces change with session.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 84034ae633..f4fbcc4f76 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -1374,7 +1374,7 @@ class ControlSurfacesOptions : public OptionEditorMiniPage if (!(*i)->mandatory) { TreeModel::Row r = *_store->append (); r[_model.name] = (*i)->name; - r[_model.enabled] = ((*i)->protocol || (*i)->requested); + r[_model.enabled] = 0 != (*i)->protocol; r[_model.protocol_info] = *i; } } @@ -1391,8 +1391,9 @@ class ControlSurfacesOptions : public OptionEditorMiniPage if ((*x)[_model.protocol_info] == cpi) { _ignore_view_change++; - (*x)[_model.enabled] = (cpi->protocol || cpi->requested); + (*x)[_model.enabled] = 0 != cpi->protocol; _ignore_view_change--; + selection_changed (); // update sensitivity break; } } |