]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fldlgcmn.cpp
removed invalid restriction
[wxWidgets.git] / src / common / fldlgcmn.cpp
index 5cfd58f897a943f55902eab7e8aefdcdd169e20d..c9d8e15494ec59745c43c6436ba8db78329df270 100644 (file)
@@ -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()
                          );
         }
     }