Gui: Fix undo/redo behaviour in transformation tool

If the user clicks on undo while the transformation dialog is
open the currently active transaction will be closed.
From now on any change of the placement won't be recorded any
more so that e.g. canceling the dialog or an undo after
accepting the dialog leads to unexpected behaviour.

To fix the issue two new virtual methods onUndo() and onRedo()
are added to TaskDialog and reimplemented in TaskTransformDialog.
These functions make sure to open a new transaction.

This fixes issue 19152
This commit is contained in:
wmayer
2025-01-23 23:49:13 +01:00
committed by Ladislav Michl
parent 9e1d85ebd2
commit 9bf621657b
6 changed files with 51 additions and 16 deletions

View File

@@ -172,6 +172,16 @@ void TaskDialog::helpRequested()
}
void TaskDialog::onUndo()
{
}
void TaskDialog::onRedo()
{
}