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? :)
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.
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.