Bug 392462

Summary: Changes to colour palettes via the Text editor are only visible after re-opening the "Edit Text" dialog.
Product: [Applications] krita Reporter: kalia24
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: emmetoneill.pdx
Priority: NOR Keywords: investigated, junior-jobs, triaged
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kalia24 2018-03-28 18:08:23 UTC
Steps to reproduce:
1. Create text layer, in edition window -> colour menu choose "Add/Remove Color..." and add a colour; save the changes
2. The new colour is visible in the "Add/Remove" pop-up, but not in colour menu list (the one you choose colour for text fill from)
3. Close the text edition window and reopen it: new colour is available in the choose-from colour list

The same happens for deleting a colour from palette - it disappears from the choose-from list only after closing and reopening the text edit window.
Comment 1 Emmet O'Neill 2018-09-15 21:11:03 UTC
Confirmed on Linux using master branch. Adding or removing colors from the palette within the "Edit Text" dialog doesn't go into effect until the next time the editor is opened.
Comment 2 Dmitry Kazakov 2018-09-27 10:10:06 UTC
Git commit e64dc33b28cf718232a206e7ff3204da9bbeb554 by Dmitry Kazakov.
Committed on 27/09/2018 at 10:09.
Pushed by dkazakov into branch 'master'.

Fix update of the palette widget in the text editor

M  +8    -6    libs/widgets/KoColorSetWidget.cpp

https://commits.kde.org/krita/e64dc33b28cf718232a206e7ff3204da9bbeb554