diff --git a/src/common/fldlgcmn.cpp b/src/common/fldlgcmn.cpp index 5dfa9e516b..01e9facb94 100644 --- a/src/common/fldlgcmn.cpp +++ b/src/common/fldlgcmn.cpp @@ -48,7 +48,7 @@ wxFileDialogBase::wxFileDialogBase(wxWindow *parent, m_message = message; m_dir = defaultDir; m_fileName = defaultFile; - m_wildCard = wildCard.empty() ? wxFileSelectorDefaultWildcardStr : wildCard; + if (wildCard.IsEmpty()) m_wildCard = wxFileSelectorDefaultWildcardStr; m_dialogStyle = style; m_path = wxT(""); m_filterIndex = 0;