Issue #1191: Added a check and warning about unsaved changes on pedigree close