Bug 453764

Summary: Plasma doesn't ask confirmation to delete a note when using its contextual menu "Delete" option
Product: [Plasma] plasmashell Reporter: zocsfxljsgpmiuaanz
Component: Notes widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description zocsfxljsgpmiuaanz 2022-05-14 00:44:28 UTC
SUMMARY
This behavior is different that the one of the other methods to delete a widget. I think this is actually the only widget with a embedded delete button so maybe that's why?

ADDITIONAL INFORMATION
I actually lost a (pretty large) note by clicking the trash button by accident, fortunately the actual files where the notes are saved are not deleted when its widget is, so I managed to recovered it. Maybe this risk makes the bug a bit more important to fix? :)
Comment 1 zocsfxljsgpmiuaanz 2022-05-14 00:49:19 UTC
Sorry, I was referring to the Trash button icon on the bottom of the note on my first comment, but that one actually asks for confirmation. The one who doesn't is on the contextual menu.
Comment 2 Nate Graham 2022-05-16 17:30:07 UTC
Can confirm. We probably need to intercept the close signal from there and wire it up to the code that displays the confirmation UI when you click on the trash button.