mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Sync SessionController::remove_marker_at_playhead() with Editor
This commit is contained in:
parent
30f5e50f85
commit
c4a8dfddfe
2 changed files with 6 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ public:
|
|||
/* Markers */
|
||||
|
||||
void add_marker (const std::string& = std::string ());
|
||||
void remove_marker_at_playhead ();
|
||||
bool remove_marker_at_playhead ();
|
||||
|
||||
/* Locating */
|
||||
|
||||
|
|
|
|||
|
|
@ -355,13 +355,13 @@ SessionController::add_marker (const std::string& markername)
|
|||
_session->commit_reversible_command ();
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
SessionController::remove_marker_at_playhead ()
|
||||
{
|
||||
bool removed = false;
|
||||
if (_session) {
|
||||
// set up for undo
|
||||
XMLNode& before = _session->locations ()->get_state ();
|
||||
bool removed = false;
|
||||
XMLNode& before = _session->locations ()->get_state ();
|
||||
|
||||
// find location(s) at this time
|
||||
Locations::LocationList locs;
|
||||
|
|
@ -388,6 +388,8 @@ SessionController::remove_marker_at_playhead ()
|
|||
_session->commit_reversible_command ();
|
||||
}
|
||||
}
|
||||
|
||||
return removed;
|
||||
}
|
||||
|
||||
/* Locating */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue