Summary: | Wrong name shown for seexpr scripts in certain circumstances (reload and cancelled rename if you renamed it earlier) | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Tiar <tamtamy.tymona> |
Component: | Resource Management | Assignee: | amyspark <amy> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | amy |
Priority: | NOR | ||
Version: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Mint (Ubuntu based) | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/d4cad4db30227d2551b4d63261d1af73a3d043a6 | Version Fixed In: | |
Sentry Crash Report: |
Description
Tiar
2021-11-06 00:14:14 UTC
Git commit bb411a37e8e5cc8cb25245ac13b074ef874ce9c5 by L. E. Segovia. Committed on 25/11/2021 at 13:47. Pushed by lsegovia into branch 'krita/5.0'. Fix SeExpr scripts' inconsistent state on reload or rename On reload, SeExpr presets override the name set to them by the resource system. Implement the changes made by Halla in 88e48c58ed576b946dbc49ce0fa00e2dcb24afbd for SeExpr presets. M +10 -4 libs/flake/resources/KisSeExprScript.cpp M +2 -0 libs/flake/resources/KisSeExprScript.h https://invent.kde.org/graphics/krita/commit/bb411a37e8e5cc8cb25245ac13b074ef874ce9c5 Git commit be7013420e4277a7e393148b797b37bf66488c84 by L. E. Segovia. Committed on 25/11/2021 at 13:47. Pushed by lsegovia into branch 'krita/5.0'. Correctly fix name refresh of paintop and SeExpr presets 778e8432d5e32d32af7c29a54175ca3470d5100e attempts to fix this by forcing an update of the name widget. This is incorrect, as the underlying preset instance still has (and will until replaced) the old name. This is easy to verify by qWarning() both instances' name() after the resourceSelected call. The fix here is to: - apply the changes to the freshly renamed resource, - and *then* (not before) issuing the resourceSelected call. CCMAIL: kimageshop@kde.org M +7 -5 libs/ui/widgets/kis_paintop_presets_editor.cpp M +4 -4 plugins/generators/seexpr/kis_wdg_seexpr.cpp https://invent.kde.org/graphics/krita/commit/be7013420e4277a7e393148b797b37bf66488c84 Git commit 7bf5d2ab1450b9d96d31c0bcf6fb23d54a6e89d5 by L. E. Segovia. Committed on 25/11/2021 at 13:50. Pushed by lsegovia into branch 'master'. Correctly fix name refresh of paintop and SeExpr presets 778e8432d5e32d32af7c29a54175ca3470d5100e attempts to fix this by forcing an update of the name widget. This is incorrect, as the underlying preset instance still has (and will until replaced) the old name. This is easy to verify by qWarning() both instances' name() after the resourceSelected call. The fix here is to: - apply the changes to the freshly renamed resource, - and *then* (not before) issuing the resourceSelected call. CCMAIL: kimageshop@kde.org (cherry picked from commit be7013420e4277a7e393148b797b37bf66488c84) M +7 -5 libs/ui/widgets/kis_paintop_presets_editor.cpp M +4 -4 plugins/generators/seexpr/kis_wdg_seexpr.cpp https://invent.kde.org/graphics/krita/commit/7bf5d2ab1450b9d96d31c0bcf6fb23d54a6e89d5 Git commit d4cad4db30227d2551b4d63261d1af73a3d043a6 by L. E. Segovia. Committed on 25/11/2021 at 13:50. Pushed by lsegovia into branch 'master'. Fix SeExpr scripts' inconsistent state on reload or rename On reload, SeExpr presets override the name set to them by the resource system. Implement the changes made by Halla in 88e48c58ed576b946dbc49ce0fa00e2dcb24afbd for SeExpr presets. (cherry picked from commit bb411a37e8e5cc8cb25245ac13b074ef874ce9c5) M +10 -4 libs/flake/resources/KisSeExprScript.cpp M +2 -0 libs/flake/resources/KisSeExprScript.h https://invent.kde.org/graphics/krita/commit/d4cad4db30227d2551b4d63261d1af73a3d043a6 |