Bug 507280

Summary: Deleting a tag asks for replacement even if tag is not used
Product: [Applications] kmymoney Reporter: jesse <jvapr27>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jesse 2025-07-20 18:20:33 UTC
SUMMARY
When you delete a tag that is unused, it will ask for a replacement tag, even if the tag is not assigned to any transactions. Probably because it is assigned to a report or something else. 


STEPS TO REPRODUCE
1. Open Kmymoney
2. Try to delete a tag that is not assigned to a transaction but is assigned or used in a report
3. 

OBSERVED RESULT
The system will ask you for a replacement tag(very nice feature btw). 

EXPECTED RESULT
The system should ask you for a replacement tag but it should also help you identify where the tag is being used. When you look through transactions and do not see it used, it make is it difficult to find why it won't let you delete it. 

A list of transactions or reports where the tag is used, would be ideal. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:  Fedora Gnome 42
KDE Plasma Version: 
KDE Frameworks Version: KDE Frameworks 
Version 5.115.0
Qt Version: Qt 
Version 5.15.13 (built against 5.15.12)
Kmymoney version: Version 5.2.70-c8a5ce6
ADDITIONAL INFORMATION