Bug 470283

Summary: Bundle not saved after removing duplicate resource items
Product: [Applications] krita Reporter: Srirupa Datta <srirupa.sps>
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: srirupa.sps
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.