[Summary] Fixing the following bugs:

- INSPECTOR's Mixer Strip should be "NO SELF DESTRUCT"
- When a RouteUI object is non-self-destruct, it should "reset ()" instead of "delete this";
This commit is contained in:
VKamyshniy 2014-07-20 22:25:23 +03:00
parent dd51b638bc
commit c666cd922f
2 changed files with 5 additions and 4 deletions

View file

@ -185,9 +185,10 @@ RouteUI::set_route (boost::shared_ptr<Route> rp)
set_color (unique_random_color());
}
if (self_destruct) {
rp->DropReferences.connect (route_connections, invalidator (*this), boost::bind (&RouteUI::self_delete, this), gui_context());
}
rp->DropReferences.connect (route_connections,
invalidator (*this),
boost::bind (self_destruct ? &RouteUI::self_delete : &RouteUI::reset,
this), gui_context());
mute_button.set_controllable (_route->mute_control());
solo_button.set_controllable (_route->solo_control());

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<RouteUI bgnormal="#383838">
<RouteUI bgnormal="#383838" selfdestruct="false">
<VBox>
<VBox>
<HBox>