Fixed bug in xml repo

HasChanges contained a bug where the XML was not opened correctly.
Changed "File > Quit"

Added a check for unsaved changes and mofified the prompt to reflect his
change.