Commit a7bb4281 authored by Kai Willadsen's avatar Kai Willadsen

undo: Make abort_group() handling the same as the end_group()

This also updates the docstring to not suggest that we actually revert
the changes made in the pending grouped actions.
parent cbe85eda
......@@ -268,15 +268,19 @@ class UndoSequence(GObject.GObject):
def abort_group(self):
"""Revert the sequence to the state before begin_group() was called.
"""Clear the currently grouped actions
Raises an AssertionError if there was no a matching call to
This discards all actions since the last begin_group() was
called. Note that it does not actually undo the actions
if self.busy:
assert is not None
if is None:
log.warning('Tried to abort a non-existent group')
if is not None:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment