From 1a05a46a217f272294b464e2f03fbc8df2fe5275 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 3 Nov 2011 14:51:56 +0000 Subject: [PATCH] fix some bugs with solo state display git-svn-id: svn://localhost/ardour2/branches/3.0@10415 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/route_ui.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 112b3eb73e..007c35a5b6 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -546,10 +546,6 @@ RouteUI::rec_enable_press(GdkEventButton* ev) } } - cerr << name() << " re button press, i am " << _i_am_the_modifier << " active state = " - << rec_enable_button->active_state() - << endl; - if (!_i_am_the_modifier && is_track() && rec_enable_button) { if (Keyboard::is_button2_event (ev)) { @@ -991,7 +987,7 @@ RouteUI::update_solo_display () if (Config->get_solo_control_is_listen_control()) { - if ((solo_button->active_state() == Active)!= (x = _route->listening_via_monitor())) { + if ((bool) solo_button->active_state() != (x = _route->listening_via_monitor())) { ++_i_am_the_modifier; solo_button->set_active_state (Active); --_i_am_the_modifier; @@ -999,7 +995,7 @@ RouteUI::update_solo_display () } else { - if ((solo_button->active_state() == Active) != (x = _route->soloed())) { + if ((bool) solo_button->active_state() != (x = _route->soloed())) { ++_i_am_the_modifier; if (x) { solo_button->set_active_state (Active);