mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
only use 1/100th gap between markers if transport is stopped, to prevent repeated user action from adding multiple markers when stopped (mackie version)
This commit is contained in:
parent
a1ef99b9b7
commit
e302ce8662
1 changed files with 2 additions and 2 deletions
|
|
@ -409,13 +409,13 @@ MackieControlProtocol::marker_press (Button &)
|
|||
string markername;
|
||||
|
||||
/* Don't add another mark if one exists within 1/100th of a second of
|
||||
* the current position.
|
||||
* the current position and we're not rolling.
|
||||
*/
|
||||
|
||||
|
||||
framepos_t where = session->audible_frame();
|
||||
|
||||
if (session->locations()->mark_at (where, session->frame_rate() / 100.0)) {
|
||||
if (session->transport_stopped() && session->locations()->mark_at (where, session->frame_rate() / 100.0)) {
|
||||
return off;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue