Bug 482260

Summary: 10 Brushes: the add-on breaks if an assigned brush has a comma in its name
Product: [Applications] krita Reporter: cruiselinermod
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.2.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description cruiselinermod 2024-03-02 23:56:15 UTC
SUMMARY

If a brush has a comma (,) in its name, assigning it to a slot in the 10 Brushes add-on will only work until Krita is closed.

When it's opened again, the brush (and some or all other brushes) will be unassigned.

It appears that the brush names are stored in ~/.config/kritarc, in a variable called "tenbrushes", and are comma-separated.

Removing the comma from the brush's name in Krita fixed the issue.


STEPS TO REPRODUCE
1. Name or rename a brush to something with a comma.
2. Assign the brush to a slot in the 10 Brushes add-on.
3. Close and reopen Krita.


OBSERVED RESULT
The newly set brush is no longer there. Other brushes may also be missing.


EXPECTED RESULT
The newly set brush should remain visible in the 10 Brushes window, and selectable with the appropriate keyboard shortcut.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.16-2-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 31.3 Gio of RAM
Graphics Processor: AMD Radeon RX 590 Series