const wxPoint& WXUNUSED(pos))
: m_message(message),
m_dir(defaultDir),
- m_fileName(defaultFile)
+ m_fileName(defaultFile),
+ m_wildCard(wildCard)
{
m_parent = parent;
m_dialogStyle = style;
m_filterIndex = 0;
- if ( wildCard.empty() )
+ if ( wildCard.empty() || wildCard == wxFileSelectorDefaultWildcardStr )
{
m_wildCard = wxString::Format(_("All files (%s)|%s"),
wxFileSelectorDefaultWildcardStr,
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()
);
}
}