Bug 114477

Summary: Disappearing parameters when editing class properties
Product: [Applications] umbrello Reporter: Hugh Warrington <hughwarrington>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: geroxp
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Hugh Warrington 2005-10-16 02:32:47 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Compiled From Sources
Compiler:          GCC 3.4.3 
OS:                Linux

This is a minor bug that can be exposed as I describe:

Start Umbrello.
Add a new class to the class diagram.
Edit the properties of the new class.
Go to operations.
Click new operation, then new parameter, then OK twice.
Now, in the operations list you will see 'new_operation', WITHOUT any mention of the new parameter.
Click ok, and bring up the properies window for the new class again. 'new_operation(new_parameter: int)' will be correctly listed.
Try editing the properties of new_operation, and upon closing the properties dialogue, you will see that the parameters of new_operation have disappeared again.
Comment 1 Oliver Kellogg 2006-03-22 08:07:03 UTC
This was fixed sometime before 1.5.2.
Comment 2 sebastien.mahe 2006-04-13 14:58:50 UTC
Same bug here with umbrello 1.5.2
Gentoo Linux 2.6.16, gcc-3.4.5, kde-3.5.2
Comment 3 Oliver Kellogg 2006-12-21 13:47:18 UTC
Bug 138965 prompted me to try again and after some fiddling around I was able
to produce the problem.
Comment 4 Oliver Kellogg 2006-12-21 14:21:32 UTC
SVN commit 615411 by okellogg:

slotDoubleClick(): Patch by Michael Palomas at bug 138965 supplies
 listItem->toString(Uml::st_SigNoVis) at call to QListBox::changeItem()
 instead of just the list item name.
BUG:114477


 M  +1 -0      ChangeLog  
 M  +1 -0      THANKS  
 M  +1 -1      umbrello/dialogs/classifierlistpage.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #615410:615411
@@ -13,6 +13,7 @@
   http://www.geeksoc.org/~jr/umbrello/uml-devel/9895.html
 * Bugs/wishes from http://bugs.kde.org:
 * Association line nodes don't drag along with multiply-selected classes (57878)
+* Disappearing parameters when editing class properties (114477)
 * Umbrello saves too much copies at xmi (135606)
 * Artifacts of a component diagram are wrongly placed in Deployment View folder (137564)
 * Incorrect export to SQL (138139)
--- branches/KDE/3.5/kdesdk/umbrello/THANKS #615410:615411
@@ -55,6 +55,7 @@
 Lutz Mueller <lutz.mueller @gmx.de>
 Heiko Nardmann <heiko.nardmann @onlinehome.de>
 Dimitri Ognibene <ognibened @yahoo.it>
+Michael Palomas <mpalomas @gmail.com>
 Anthony Parent <anthony.parent @intel.com>
 Carsten Pfeiffer <pfeiffer @kde.org>
 Ivan Porres <iporres @abo.fi>
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/dialogs/classifierlistpage.cpp #615410:615411
@@ -500,7 +500,7 @@
     }
 
     if( listItem->showPropertiesDialog(this) ) {
-        m_pItemListLB->changeItem( listItem->getName(), m_pItemListLB->index(item) );
+        m_pItemListLB->changeItem( listItem->toString(Uml::st_SigNoVis), m_pItemListLB->index(item) );
     }
 }
 
Comment 5 Oliver Kellogg 2006-12-21 14:23:10 UTC
*** Bug 138965 has been marked as a duplicate of this bug. ***