Applied patch [ 686843 ] File Dialog Wildcard Bug

A bug was introduced in generic/src/filedlgg.cpp
between versions 2.2.9 and 2.4 that causes incomplete
file extensions to be appended to filenames not having
extensions after a user changes the wildcard index in
the filedialog. This patch reverts back to the correct
code.

Bob Downey


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-02-18 09:27:23 +00:00
parent 07c8746bad
commit 1161316c67
2 changed files with 9 additions and 2 deletions

View File

@@ -184,6 +184,13 @@ All:
- Added missing wx/quantize.h to install.
wxGTK:
- Added wxEVT_MENU_OPEN event generation.
- Fixed bug in generic file selector causing incomplete file extensions to
be appended to filenames with no extension.
2.4.0
-----

View File

@@ -1262,8 +1262,8 @@ void wxFileDialog::DoSetFilterIndex(int filterindex)
m_filterIndex = filterindex;
if ( str->Left(2) == wxT("*.") )
{
m_filterExtension = str->Mid(2);
if (m_filterExtension == _T("*"))
m_filterExtension = str->Mid(1);
if (m_filterExtension == _T(".*"))
m_filterExtension.clear();
}
else