Bug 472636

Summary: ten brush script is not working properly (last night version 5.2.0-prealpha-40afac1de4-)
Product: [Applications] krita Reporter: ahmett <Ahmettabak1>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ahmett 2023-07-25 22:54:10 UTC
I downloaded the last night version of krita.(krita-nightly-x64-5.2.0-prealpha-40afac1de4-) and I noticed that the ten brush script is not working properly. Brushes cannot save. and the script error screen pops up.
Comment 1 Bug Janitor Service 2023-07-26 21:32:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1869
Comment 2 Freya Lupen 2023-07-26 21:42:40 UTC
Git commit 2f6ce2c1ab0fc9428c8e4f51d00c0948b0e04fd4 by Freya Lupen.
Committed on 26/07/2023 at 23:24.
Pushed by rempt into branch 'master'.

Fix Ten Brushes script error when unconfigured

'list[idx] = value' doesn't work if idx may be invalid.
Use list.insert(idx, value) instead.

M  +1    -1    plugins/python/tenbrushes/tenbrushes.py

https://invent.kde.org/graphics/krita/-/commit/2f6ce2c1ab0fc9428c8e4f51d00c0948b0e04fd4
Comment 3 Halla Rempt 2023-07-27 07:36:28 UTC
Git commit b4556fd9b0947541bb82797fb533b19c12448e2d by Halla Rempt, on behalf of Freya Lupen.
Committed on 27/07/2023 at 09:36.
Pushed by rempt into branch 'krita/5.2'.

Fix Ten Brushes script error when unconfigured

'list[idx] = value' doesn't work if idx may be invalid.
Use list.insert(idx, value) instead.
(cherry picked from commit 2f6ce2c1ab0fc9428c8e4f51d00c0948b0e04fd4)

M  +1    -1    plugins/python/tenbrushes/tenbrushes.py

https://invent.kde.org/graphics/krita/-/commit/b4556fd9b0947541bb82797fb533b19c12448e2d