mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Prevents user from infinitely banking right in mackie sends subview
This commit is contained in:
parent
17a7dbe06d
commit
bc6461dc76
1 changed files with 20 additions and 2 deletions
|
|
@ -731,8 +731,26 @@ bool SendsSubview::handle_cursor_left_press()
|
|||
|
||||
bool SendsSubview::handle_cursor_right_press()
|
||||
{
|
||||
_current_bank += 1;
|
||||
mcp().redisplay_subview_mode();
|
||||
uint32_t num_sends = 0;
|
||||
if(_subview_stripable->send_name(0).size() > 0)
|
||||
{
|
||||
bool more_sends = true;
|
||||
while(more_sends)
|
||||
{
|
||||
if(_subview_stripable->send_name(num_sends).size() > 0)
|
||||
{
|
||||
num_sends++;
|
||||
} else
|
||||
{
|
||||
more_sends = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(num_sends > _current_bank + 1)
|
||||
{
|
||||
_current_bank += 1;
|
||||
mcp().redisplay_subview_mode();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue