Bug 359854 - presets get duplicated instead of getting overwritten
Summary: presets get duplicated instead of getting overwritten
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Halla Rempt
URL:
Keywords:
: 418226 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-27 10:14 UTC by codl
Modified: 2021-03-25 14:45 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description codl 2016-02-27 10:14:40 UTC
If I try to overwrite a custom brush preset, at first it seems to work fine but after restarting Krita I see both the most recent version of the preset, and the original version before it was overwritten, both with the same name.

Reproducible: Always

Steps to Reproduce:
1. Save a brush preset
2. Edit it without changing its name
3. Overwrite it
4. Close and reopen krita

Actual Results:  
Both the old and the new version of the preset are present

Expected Results:  
Only the new version is present

I'm running git commit 4b721de90

I don't remember this happening in 2.9
Comment 1 wolthera 2016-03-03 11:18:04 UTC
Can confirm this, it's related to the resource paths being confused and thus Krita blacklisting improperly.
Comment 2 Odysseas 2017-04-04 09:30:29 UTC
I have a similar issue in 3.x:

If I overwrite a preset which belongs to more than one tags, I get duplicate versions. So the change is saved but if the preset belongs to a tag then an old instance of the preset remains there.

It is not always reproducible, and cannot understand if it occurs on every preset that belongs to tags, or if it happens when I select the preset from a specific tag.

Any ideas?
Comment 3 gordie.lachance+dev 2017-11-01 13:07:57 UTC
I saw on the IRC:

Wolthera_laptop
yes and no, what it does is that it blacklists the old preset and creates a new preset with the same name, it is intended as a backup system.
Comment 4 Tiar 2020-02-26 20:14:47 UTC
*** Bug 418226 has been marked as a duplicate of this bug. ***
Comment 5 Halla Rempt 2021-03-25 14:45:59 UTC
This no longer happens in git master. Tested with  4cac9dfe7039fb2bc39658025088947dbe3435b7