How to tell whether or not a file has been saved ?

The little black dot in the cross icon of a file means it has not been saved. For example, the file in the picture below hasn't been saved.