warn in leaving edit mode if unsaved changes+priority