#4995, #4996: Fixed changing link + ask to save on exit