Bug 389513

Summary: Bug in Source Code Editor
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.24.1 (KDE Applications 17.12.1)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.24.2 (KDE Applications 17.12.2)

Description Ralf Habacker 2018-01-27 14:15:45 UTC
From https://mail.kde.org/pipermail/umbrello-devel/2018-January/021315.html

The source code of an operation can only be changed using the class's Properties window, but not the operation's Properties.

Note: In the instructions below don't edit the 'new_operation()' using the Tree View or it will work just fine!

How to reproduce?
1. Create a new class in a class diagram
2. Go to the class properties
3. Click on Operations > New Operation...
4. Add some "Source Code" in the Documentation section and click OK
5. Now click on the new_operation()'s Properties and try to change the code you just entered. It wont't get saved.

The entered code is only editable in the class's "Properties > Operation Settings > Documentation > Source Code" section.
Comment 1 Ralf Habacker 2018-01-27 14:47:31 UTC
Git commit 7547fc9a1dbf522c5d4fbeb2b1ab9e0c4e3566e2 by Ralf Habacker.
Committed on 27/01/2018 at 14:40.
Pushed by habacker into branch 'Applications/17.12'.

Fix 'Bug in Source Code Editor'
    
Update source code similar to the documentation in operation page of
class property dialog in case the properties of the operation has been
updated.
    
https://commits.kde.org/umbrello/7547fc9a1dbf522c5d4fbeb2b1ab9e0c4e3566e2