Updates to MIME-types and wxFileDialog code for better
native looking image handling. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -208,10 +208,13 @@ void wxFileData::ReadData()
|
||||
// try to get a better icon
|
||||
if (m_image == wxFileIconsTable::file)
|
||||
{
|
||||
if (IsExe())
|
||||
if (m_fileName.Find(wxT('.'), TRUE) != wxNOT_FOUND)
|
||||
{
|
||||
m_image = wxTheFileIconsTable->GetIconID( m_fileName.AfterLast(wxT('.')));
|
||||
} else if (IsExe())
|
||||
{
|
||||
m_image = wxFileIconsTable::executable;
|
||||
else if (m_fileName.Find(wxT('.'), TRUE) != wxNOT_FOUND)
|
||||
m_image = wxTheFileIconsTable->GetIconID(m_fileName.AfterLast(wxT('.')));
|
||||
}
|
||||
}
|
||||
|
||||
m_size = buff.st_size;
|
||||
|
Reference in New Issue
Block a user