Fixed unsaved dialog appearing when performing a save after a file has been saved.