[dolphin] [Bug 451746] There is "Undo" but no "Redo"

Méven bugzilla_noreply at kde.org
Mon Jul 28 09:48:30 BST 2025


https://bugs.kde.org/show_bug.cgi?id=451746

--- Comment #11 from Méven <meven at kde.org> ---
Git commit 0204ac98ad8dced42b6386fb68e046dd3c53fb55 by Méven Car, on behalf of
Gleb Kasachou.
Committed on 28/07/2025 at 08:48.
Pushed by meven into branch 'master'.

widgets: Add redo support to FileUndoManager

This commit introduces support for redoing file operations in
FileUndoManager. Since it is now possible to redo any operation that has
been undone. The FileUndoManagerTest has been updated accordingly.

Changes

* Redo support has been added
* A confirmation dialog previously appeared before any undo operation that
deletes files or folders. Since any destructive changes (with one exception,
which is already covered by another confirmation popup) can now be reverted
with a redo, this dialog has been removed
* `FileUndoManagerTest` has been modified to reflect the changes
* Fixed a bug where cancelling an `UndoJob` while it was running caused a
segmentation fault
* Refactored the undo logic: the `REMOVINGLINKS` step has been removed and its
functionality merged into the `MOVINGFILES` step, since link deletions are now
handled alongside other file operations
* Limited the number of state change events are emitted

M  +231  -19   autotests/fileundomanagertest.cpp
M  +1    -0    autotests/fileundomanagertest.h
M  +327  -148  src/widgets/fileundomanager.cpp
M  +41   -1    src/widgets/fileundomanager.h
M  +24   -15   src/widgets/fileundomanager_p.h

https://invent.kde.org/frameworks/kio/-/commit/0204ac98ad8dced42b6386fb68e046dd3c53fb55

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list