Bug 342398

Summary: Documentation window content assignment issue
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: major CC: jwrigley7
Priority: NOR    
Version: 2.14.3 (KDE Applications 4.14.3)   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In: 2.15.2 (KDE 14.12.2)

Description Ralf Habacker 2015-01-01 22:45:33 UTC
Entered text in the documentation window is saved into the wrong widgets.

Reproducible: Always

Steps to Reproduce:
1. open umbrello
2. make documentation window visible
3. add a class to the class diagram
4. select the class and enter "class" in the doc window
5. select empty space in the class diagram
6. enter "class diagram" in the doc window
7. select empty space in the class diagram
8. select class  in the class diagram


Actual Results:  
The documentation of the class is "class diagram", the documentation of the class diagram is empty.

Expected Results:  
The documentation of the class should be "class" and the documentation of the class diagram "class diagram".

There is something wrong with the documention window update implementation after focus change. The documentation window is unusable because of this issue.
Comment 1 James W 2015-01-01 23:18:51 UTC
Hi there,
I can also reproduce this on KDE 4.14.3 with 2.14.3.
Comment 2 Ralf Habacker 2015-01-13 14:30:26 UTC
Git commit d3e0c3b9630de83adc27a9f350969657064a7c00 by Ralf Habacker.
Committed on 13/01/2015 at 14:14.
Pushed by habacker into branch 'Applications/14.12'.

Fix 'Documentation window content assignment issue'.

We should select the correct object pointer in relation to the
currently used documentation window content type for updating.
Otherwise the order of object/scene/widget selection wrongly
determines which object is updated.

M  +7    -5    umbrello/docwindow.cpp

http://commits.kde.org/umbrello/d3e0c3b9630de83adc27a9f350969657064a7c00