Added setFileUnsaved function.