Bug 424868

Summary: The "Undo" feature seems to be lacking functionality
Product: [Applications] umbrello Reporter: Robert Hairgrove <code>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Robert Hairgrove 2020-07-31 15:46:25 UTC
SUMMARY
In Settings/General, there is an option "Enable undo" which can be checked or unchecked. However, most operations seem not to be undoable. Also, there is no menu item "Edit/Undo" or "Redo"

STEPS TO REPRODUCE
1. In the Tree View, create a new class, but do not edit its properties;
2. Try to undo the class creation.
3. ???

OBSERVED RESULT
Hitting Ctrl-Z does nothing, and there seems to be no other way to undo the creation of the new class.

EXPECTED RESULT
The newly-created class should go away.

SOFTWARE/OS VERSIONS
Linux Ubuntu 18.04.4
Qt Version: 5.x

ADDITIONAL INFORMATION
Perhaps I didn't see the correct way to do this?
Comment 1 Robert Hairgrove 2020-08-02 08:34:16 UTC
It looks like the slots are there in the class UMLApp:

    void slotEditUndo();
    void slotEditRedo();

but they are never called by anything.
Comment 2 Robert Hairgrove 2020-08-02 08:51:51 UTC
When I toggle the setting "Enable Undo" in the Settings dialog, I can show or hide the Command history view at the bottom left. Navigating the command history seems to achieve the undo and redo effects, but this is not the "normal" or intuitive way to do this.

Every other application in the world which has undo/redo will react to CTRL-Z for undo, and this is normally at the very top of the Edit menu.