mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
probable crash fix for solo-press causes segv
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3927 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
48419f95e7
commit
08c036568f
1 changed files with 5 additions and 2 deletions
|
|
@ -88,8 +88,6 @@ RouteUI::init ()
|
|||
rec_enable_button = manage (new BindableToggleButton (0, ""));
|
||||
rec_enable_button->set_name ("RecordEnableButton");
|
||||
rec_enable_button->set_self_managed (true);
|
||||
|
||||
_session.SoloChanged.connect (mem_fun(*this, &RouteUI::solo_changed_so_update_mute));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -133,6 +131,11 @@ RouteUI::set_button_names (const char* mute, const char* solo, const char* rec)
|
|||
void
|
||||
RouteUI::set_route (boost::shared_ptr<Route> rp)
|
||||
{
|
||||
if (!_route) {
|
||||
/* first time it is set */
|
||||
_session.SoloChanged.connect (mem_fun(*this, &RouteUI::solo_changed_so_update_mute));
|
||||
}
|
||||
|
||||
reset ();
|
||||
|
||||
_route = rp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue