Bug 439701

Summary: Add to Predefined Patterns
Product: [Applications] krita Reporter: Tiar <tamtamy.tymona>
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ahab.greybeard, halla
Priority: NOR Keywords: regression
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tiar 2021-07-09 22:25:37 UTC
SUMMARY


STEPS TO REPRODUCE
1. Make some "pattern" on the canvas.
2. Go to Patterns popup.
3. Use "Custom" -> Add to Predefined Patterns.

OBSERVED RESULT
There is no pattern like that in Predefined Patterns popup (the one on the toolbar) afterwards.
It is however visible in Resource Manager.
A restart of Krita fixes it.
It looks like the popup somehow doesn't update even though not only the database is changed and the file is saved correctly, but even the models see the pattern (vide RM).

EXPECTED RESULT
The pattern should immediately be shown in the Predefined Patterns chooser in the patterns popup.

SOFTWARE/OS VERSIONS
git hash: 13f04ca236
Comment 1 Ahab Greybeard 2021-07-15 19:26:18 UTC
I can confirn this for the July 15 5.0.0-prealpha (git 9d832b4) appimage.

With the 4.4.5 appimage, the added custom pattern can be seen in the Toolbar patterns popup and in the Patterns Docker immediately.
Hence regression.
Comment 2 Halla Rempt 2021-07-27 12:18:56 UTC
Git commit 5d7a5e145377f2aa1bacf69b4cbc60675fb67321 by Halla Rempt.
Committed on 27/07/2021 at 12:16.
Pushed by rempt into branch 'master'.

Implement saving patters to predefined

M  +4    -1    libs/resources/KisResourceLocator.cpp
M  +1    -9    libs/ui/KisApplication.cpp
M  +9    -3    libs/ui/forms/wdgcustompattern.ui
M  +1    -1    libs/ui/kis_control_frame.cpp
M  +35   -16   libs/ui/kis_custom_pattern.cc

https://invent.kde.org/graphics/krita/commit/5d7a5e145377f2aa1bacf69b4cbc60675fb67321