Bug 86828

Summary: Cut/Paste of use-case diagrams doesn't work correctly
Product: [Applications] umbrello Reporter: Sebastian Stein <seb.kde>
Component: generalAssignee: Oliver Kellogg <okellogg>
Status: RESOLVED FIXED    
Severity: normal CC: dirk, opensource
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sebastian Stein 2004-08-09 10:07:24 UTC
Version:           1.3.0 (using KDE 3.2.3, compiled sources)
Compiler:          gcc version 3.3.3
OS:                Linux (i686) release 2.4.26

bug report by  "Dirk Estievenart" <dirk@netxistenz.com>:

In the treeview under "use case view", I made several use                
cases. I had so much of them that I decided to group them in folders                   
(under the same "use case view" node). I created some folders, which went              
fine.                                                                                  
I tried to move the use cases to the folders by drag-'n-drop, which did                
nothing at all.                                                                        
Then I tried cut-'n-copy, which works but gives an error message : "At                 
least one of the items in the clipboard could not be pasted because an                 
item of the same name already exists. Any other items have been pasted."               
It gives this error, even when the folder is empty. Good thing is that you             
can safely ignore it, because the use case is pasted in the correct                    
folder. The only thing is that the text of the use case remains at the                 
bottom of the treeview (as if it was an orphined root item). If you try to             
delete that one, Umbrello crashes.
Comment 1 Sebastian Stein 2004-08-09 10:08:13 UTC
I think the submitter means use-case diagrams. I can confirm this bug.
Comment 2 Oliver Kellogg 2004-08-09 19:04:43 UTC
I have the fix for this - okay to commit?
Comment 3 Oliver Kellogg 2004-08-09 19:55:55 UTC
Forget about my previous comment - both drag'n'drop
and cut'n'paste work fine in cvs HEAD.
Note that for drag'n'drop, you probably need to release
the mouse button near the botom of the target folder
(this is a longstanding bug that noone has cared to fix :)
Comment 4 Sebastian Stein 2004-08-10 12:35:14 UTC
Drag&Drop seems to work, but Cut/Paste not. Do the following:

1. Create a new use-case diagram in the listview
2. Create a new use-case in the listview
3. Drag the use-case onto the use-case diagram
4. Create a new folder under the use-case view
5. Right click on the use-case diagram in the listview and select "Cut"
6. Right click on the folder and select "Paste"
-> the diagram will be now under the folder, but the use-case will be there 2 times and a new use-case without name is created as well
Comment 5 Dirk 2004-08-10 15:24:38 UTC
Sebastian has correctly understood the bug.
After step 6, do:
7. Try to delete the diagram under the folder (it will make Umbrello crash)
Comment 6 Mathieu Jobin 2004-08-26 18:08:04 UTC
well, i dont think any copy paste work right now
duplicate bug #70924
Comment 7 Oliver Kellogg 2004-12-02 05:06:26 UTC
CVS commit by okellogg: 

Fix cut/paste in list view.
BUG:86828


  M +1 -1      ChangeLog   1.43
  M +2 -0      umbrello/umllistviewitem.cpp   1.63
  M +45 -15    umbrello/clipboard/umldrag.cpp   1.28