X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aaa37c0d232074ca87df16f7c1f9ce21a18979b5..300b1288331acc7ac3482595bb226a52f8aec238:/src/generic/filedlgg.cpp diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index c76bb9c2c6..78ceba169a 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -244,6 +244,7 @@ void wxFileData::SetNewName( const wxString &name, const wxString &fname ) void wxFileData::MakeItem( wxListItem &item ) { item.m_text = m_name; + item.ClearAttributes(); if (IsExe()) item.SetTextColour(*wxRED); if (IsDir()) item.SetTextColour(*wxBLUE); item.m_image = IsDir() ? 0 : -1; @@ -575,7 +576,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, m_dialogStyle = style; if ((m_dialogStyle & wxMULTIPLE ) && !(m_dialogStyle & wxOPEN)) - m_dialogStyle &= ~wxMULTIPLE; + m_dialogStyle |= wxOPEN; m_dir = defaultDir; if (m_dir.IsEmpty())