Ask to save unsaved changes on closing patch
On clicking the close patch button of an edited patch a dialog box will appear asking if the user would like to save changes or not. Fixes #849, related MR !792.
Demo:
ubuntu__Running__-_Oracle_VM_VirtualBox_2022-02-27_19-58-31_Trim