Bug 362978

Summary: Attributes are always private (initially)
Product: [Applications] umbrello Reporter: Mark Stanton <mark>
Component: generalAssignee: Lays Rodrigues <laysrodriguessilva>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: 2.16.0 (KDE Applications 15.04.0)   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 2.17.90 (KDE Applications 15.11.90)

Description Mark Stanton 2016-05-12 11:42:27 UTC
When creating attributes for a class they remain private, regardless of any attempt to set tem as public (I haven't tried others) until they are saved.
On re-opening the dialog for the attribute it is possible to save it as public

Reproducible: Always

Steps to Reproduce:
1. create/open a class
2. create an attribute
3. set it to public
4. save attribute
5. re-open attribute

Actual Results:  
It is still private

Expected Results:  
It should be public
Comment 1 Ralf Habacker 2016-05-12 11:54:07 UTC
@Lays: I remember that someone has fixed this issue in the meantime. It is required to find the related bug and close this bug as duplicate.
Comment 2 Lays Rodrigues 2016-05-12 15:58:12 UTC
(In reply to Ralf Habacker from comment #1)
> @Lays: I remember that someone has fixed this issue in the meantime. It is
> required to find the related bug and close this bug as a duplicate.

Ralf, I found this bugs, please see and send to me the right one:
Bug 351103 - Umbrello crashes when changing type for an operation for a class
Bug 331655 - auto-generated getters and setters to attributes are private in generated java classes
Bug 53365 - attributes private by default *I guess that is this one!*

Well, that is what I found searching for the keyword "attribute" on closed and resolved bugs. Please let me know if one of those is the related bug.
Comment 3 Ralf Habacker 2016-05-12 21:07:09 UTC
(In reply to Lays Rodrigues from comment #2)
> Ralf, I found this bugs, please see and send to me the right one:
I rembered that the fix contained adding a QPointer to one of the classes in subdir umbrello/cmds, did a git log -p umbrello/cmds, searched for QPointer and got the related one: 
Bug 352633 - Visibility settings are omitted when create new Attributes or Operations
Comment 4 Ralf Habacker 2016-06-02 10:58:01 UTC

*** This bug has been marked as a duplicate of bug 352633 ***