Implemented DELETEDATA mode of saveDialog.
Merge pull request #4409 from shenweip/patch-2

Implemented DELETEDATA mode of saveDialog.