SUMMARY Newly saved brush presets aren't created properly if they share a name with an old deleted preset. STEPS TO REPRODUCE 1. Create a brush named "Foobar". 2. Delete the brush through the brush settings. 3. Create a new brush named "Foobar". OBSERVED RESULT The new brush isn't created or at least isn't shown in the UI. EXPECTED RESULT Names of deleted brushes shouldn't break creation of future brushes. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Debian sid KDE Plasma Version: 5.21.5 KDE Frameworks Version: 5.83.0 Qt Version: 5.12.11 (Appimage)
Presets renamed to old deleted brushes also disappear.
Could you please check the latest master, Krita Next (and then latest stable, Krita Plus) as well? Either me or Halla was already fixing that, I believe.
A couple missing brushes that I made for testing this bug reappear in nightly 4839c370, but the rest of them don't. (Somehow after starting nightly 4839c370 a second time, I've suddenly attained the mypaint brush pack that I've been missing...)
Ah I should be more clear, the same behavior described in the bug report still happens as well.
Thanks for your comment! Automatically switching the status of this bug to REPORTED so that the KDE team knows that the bug is ready to get confirmed. In the future you may also do this yourself when providing needed information.
It must've been broken again, I'm looking into it.
Git commit 139d7441681f672d2a0967d0fa021b46c1c841d0 by Halla Rempt. Committed on 01/09/2021 at 09:28. Pushed by rempt into branch 'master'. Fix saving a resource over an existing, but deleted resource M +80 -23 libs/resources/KisResourceModel.cpp M +1 -1 libs/ui/dialogs/KisDlgSavePreset.cpp https://invent.kde.org/graphics/krita/commit/139d7441681f672d2a0967d0fa021b46c1c841d0
Git commit 05ff8fdf2e902238ca70f36c4a2bd9e1f73db928 by Halla Rempt. Committed on 01/09/2021 at 09:29. Pushed by rempt into branch 'krita/5.0'. Fix saving a resource over an existing, but deleted resource (cherry picked from commit 139d7441681f672d2a0967d0fa021b46c1c841d0) M +80 -23 libs/resources/KisResourceModel.cpp M +1 -1 libs/ui/dialogs/KisDlgSavePreset.cpp https://invent.kde.org/graphics/krita/commit/05ff8fdf2e902238ca70f36c4a2bd9e1f73db928