Resolving save problem when opening a project file before saving.

Signed-off-by: Benoit Brayer <brayer.benoit@gmail.com>