Bug 114477 - Disappearing parameters when editing class properties
Summary: Disappearing parameters when editing class properties
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 138965 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-16 02:32 UTC by Hugh Warrington
Modified: 2006-12-21 14:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***