remove some gtk warnings caused by adding monitor buttons without removing them first
This commit is contained in:
parent
c81395e7db
commit
de218360d0
@ -409,12 +409,20 @@ MixerStrip::~MixerStrip ()
|
|||||||
void
|
void
|
||||||
MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
MixerStrip::set_route (boost::shared_ptr<Route> rt)
|
||||||
{
|
{
|
||||||
|
//the rec/monitor stuff only shows up for tracks.
|
||||||
|
//the show_sends only shows up for buses.
|
||||||
|
//remove them all here, and we may add them back later
|
||||||
|
if (show_sends_button->get_parent()) {
|
||||||
|
rec_mon_table.remove (*show_sends_button);
|
||||||
|
}
|
||||||
if (rec_enable_button->get_parent()) {
|
if (rec_enable_button->get_parent()) {
|
||||||
rec_mon_table.remove (*rec_enable_button);
|
rec_mon_table.remove (*rec_enable_button);
|
||||||
}
|
}
|
||||||
|
if (monitor_input_button->get_parent()) {
|
||||||
if (show_sends_button->get_parent()) {
|
rec_mon_table.remove (*monitor_input_button);
|
||||||
rec_mon_table.remove (*show_sends_button);
|
}
|
||||||
|
if (monitor_disk_button->get_parent()) {
|
||||||
|
rec_mon_table.remove (*monitor_disk_button);
|
||||||
}
|
}
|
||||||
|
|
||||||
RouteUI::set_route (rt);
|
RouteUI::set_route (rt);
|
||||||
|
Loading…
Reference in New Issue
Block a user