diff options
author | Robin Gareus <robin@gareus.org> | 2016-12-01 15:51:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-12-01 15:51:00 +0100 |
commit | 96cb9ba626434f98cc9d9c618102d35c7f924304 (patch) | |
tree | 9a2b646a7e59046484dc9971260c07c314c3f6f1 /gtk2_ardour | |
parent | 9d7279d012d906ce456f418bc62aa16c93b88a0d (diff) |
Fix un/setting group colors
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/group_tabs.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc index 5b5d5d1809..0d7eec1c7c 100644 --- a/gtk2_ardour/group_tabs.cc +++ b/gtk2_ardour/group_tabs.cc @@ -721,7 +721,13 @@ GroupTabs::set_activation (RouteGroup* g, bool a) void GroupTabs::remove_group (RouteGroup* g) { + RouteList rl (*(g->route_list().get())); _session->remove_route_group (*g); + + for (RouteList::iterator i = rl.begin(); i != rl.end(); ++i) { + (*i)->presentation_info().PropertyChanged (Properties::color); + } + PresentationInfo::Change (); // notify summary & port-matrix } /** Set the color of the tab of a route group */ @@ -835,6 +841,7 @@ GroupTabs::route_added_to_route_group (RouteGroup*, boost::weak_ptr<Route> w) } r->presentation_info().PropertyChanged (Properties::color); + PresentationInfo::Change (); // notify summary & port-matrix set_dirty (); } @@ -850,6 +857,7 @@ GroupTabs::route_removed_from_route_group (RouteGroup*, boost::weak_ptr<Route> w } r->presentation_info().PropertyChanged (Properties::color); + PresentationInfo::Change (); // notify summary & port-matrix set_dirty (); } @@ -858,6 +866,7 @@ void GroupTabs::emit_gui_changed_for_members (RouteGroup* rg) { for (RouteList::iterator i = rg->route_list()->begin(); i != rg->route_list()->end(); ++i) { - (*i)->gui_changed (X_("color"), 0); + (*i)->presentation_info().PropertyChanged (Properties::color); } + PresentationInfo::Change (); // notify summary & port-matrix } |