mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
Do not commit empty split undo transactions
When no region(s) are selected and none are under the edit-point, only a selection change was committed as undo action.
This commit is contained in:
parent
d5eaeb041b
commit
33de08e9e7
1 changed files with 5 additions and 0 deletions
|
|
@ -285,6 +285,11 @@ Editor::split_regions_at (MusicSample where, RegionSelection& regions)
|
|||
EditorThaw(); /* Emit Signal */
|
||||
}
|
||||
|
||||
if (_session->abort_empty_reversible_command ()) {
|
||||
/* no change was made */
|
||||
return;
|
||||
}
|
||||
|
||||
RegionSelectionAfterSplit rsas = Config->get_region_selection_after_split();
|
||||
|
||||
//if the user has "Clear Selection" as their post-split behavior, then clear the selection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue