Bug 265182

Summary: Umbrello doesn't obey when going back in command history and then crashes
Product: [Applications] umbrello Reporter: Alvaro Manuel Recio Perez <amrecio>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: crash CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 4.13.0

Description Alvaro Manuel Recio Perez 2011-02-02 12:19:17 UTC
Version:           unspecified
OS:                Linux

This report is for two bugs which I think are related.

The first is that when going back in command history, Umbrello asks the user if he really wants to delete a diagram. Despite clicking cancel, Umbrello deletes the diagram.

Then, going forward in command history makes Umbrello crash.

Reproducible: Always

Steps to Reproduce:
1. Open Umbrello.
2. Add a class to the default class diagram.
3. Create a new sequence diagram.
4. Drag the previous class to the sequence diagram.
5. In the "Command history" class click the first item, to go back to the initial state.
6. Umbrello will ask if you really want to delete the sequence diagram.
7. Click cancel. Umbrello *will delete* the diagram anyway (first bug).
8. Click the last item in "Command history". Umbrello will ask for the name of the sequence diagram.
9. Click cancel.

Actual Results:  
Umbrello crashes.

Expected Results:  
Umbrello shouldn't crash and should honor the user clicking cancel.

OS: Linux (x86_64) release 2.6.35-25-generic
Compiler: cc
Umbrello version: 2.6.0