Fixed Bug 313485 - Improper message shows up when renamed a file with
some unsaved change.

Show up a dialog asking user to close unsaved file.