Bug 470283 - Bundle not saved after removing duplicate resource items
Summary: Bundle not saved after removing duplicate resource items
Status: ASSIGNED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: git master (please specify the git hash!)
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-26 10:29 UTC by Srirupa Datta
Modified: 2023-05-26 10:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srirupa Datta 2023-05-26 10:29:08 UTC
SUMMARY
***
Whenever I try to create a bundle with two resource items having the same name, an error dialog pops up saying I cannot add two res items with same name in a single bundle. So when I go back and delete one of them, and click Save, the Bundle Creator closes but the bundle isn't saved actually. This probably happens because I can't edit bundles in Krita, so it just doesn't save a bundle if we go back and modify something. I think a message should be displayed that the bundle is not saved else it's kind of misleading.
***


STEPS TO REPRODUCE
1. Go to Settings > Manage Resources > Create a Bundle
2. Add 2 resource items with same name
3. Try saving the bundle, error message pops up
4. Go back and delete one of the duplicate resource
5. Click Save.

OBSERVED RESULT
The bundle is not saved.

EXPECTED RESULT
Either the bundle should be saved or an error dialog should pop up warning the user that the bundle was not saved.