Don't add default extension in wxDocument::SaveAs().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Oct 2009 13:05:10 +0000 (13:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 9 Oct 2009 13:05:10 +0000 (13:05 +0000)
commitfd4618549b4cb22d84930b45853dc09f489e732c
treee466263e6683a927f730e17b35e201c42d1eecaf
parent8462a84b2caab30265823ebbdbdfc7cff91486e6
Don't add default extension in wxDocument::SaveAs().

wxFileSelector() takes care of the default extension itself and if it returned
a file name without one, it means that the user really wants to create a file
without an extension. Adding the default extension here is at best useless and
at worst actively dangerous because it may silently overwrite an existing file
(although this bug is due to a different problem, see #11256 for a scenario in
which this can happen).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/docview.cpp