fixed wild card string construction when description is not provided and when it is the default (*.* or *) one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,7 +52,7 @@ wxFileDialogBase::wxFileDialogBase(wxWindow *parent,
|
||||
m_dialogStyle = style;
|
||||
m_filterIndex = 0;
|
||||
|
||||
if ( wildCard.empty() )
|
||||
if ( wildCard.empty() || wildCard == wxFileSelectorDefaultWildcardStr )
|
||||
{
|
||||
m_wildCard = wxString::Format(_("All files (%s)|%s"),
|
||||
wxFileSelectorDefaultWildcardStr,
|
||||
@@ -72,9 +72,9 @@ wxFileDialogBase::wxFileDialogBase(wxWindow *parent,
|
||||
m_wildCard = wxString::Format
|
||||
(
|
||||
_("%s files (%s)|%s"),
|
||||
m_wildCard.c_str() + nDot,
|
||||
m_wildCard.c_str(),
|
||||
m_wildCard.c_str()
|
||||
wildCard.c_str() + nDot,
|
||||
wildCard.c_str(),
|
||||
wildCard.c_str()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user