Bug 389513 - Bug in Source Code Editor
Summary: Bug in Source Code Editor
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.24.1 (KDE Applications 17.12.1)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-27 14:15 UTC by Ralf Habacker
Modified: 2018-01-27 14:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.24.2 (KDE Applications 17.12.2)


Attachments

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