mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
Console1: another attempt to fix uncaught exeptions
This commit is contained in:
parent
85d9e333c9
commit
61ec873481
2 changed files with 18 additions and 6 deletions
|
|
@ -894,15 +894,23 @@ Console1::map_stripable_state ()
|
|||
void
|
||||
Console1::stop_blinking (ControllerID id)
|
||||
{
|
||||
blinkers.remove (id);
|
||||
get_button (id)->set_led_state (false);
|
||||
try {
|
||||
blinkers.remove (id);
|
||||
get_button (id)->set_led_state (false);
|
||||
} catch (ControlNotFoundException const&) {
|
||||
DEBUG_TRACE (DEBUG::Console1, "Button to stop blinking not found ...\n");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Console1::start_blinking (ControllerID id)
|
||||
{
|
||||
blinkers.push_back (id);
|
||||
get_button (id)->set_led_state (true);
|
||||
try {
|
||||
blinkers.push_back (id);
|
||||
get_button (id)->set_led_state (true);
|
||||
} catch (ControlNotFoundException const&) {
|
||||
DEBUG_TRACE (DEBUG::Console1, "Button to start blinking not found ...\n");
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue