X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da0766ab2ae2357cd4dc111415731ee85aa45984..360b63dd328617a32752f61b45d347963c6c5ee1:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 0d1b83011c..1c6eb62aae 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -77,6 +77,7 @@ #include "wx/dir.h" #include "wx/utils.h" #include "wx/tokenzr.h" +#include "wx/iconloc.h" #include "wx/unix/mimetype.h" @@ -1187,7 +1188,7 @@ bool wxFileTypeImpl::GetIcon(wxIconLocation *iconLoc) const if ( iconLoc ) { - iconLoc->SetIconFile(sTmp); + iconLoc->SetFileName(sTmp); } return TRUE; @@ -1820,7 +1821,8 @@ int wxMimeTypesManagerImpl::AddToMimeData(const wxString& strType, m_aEntries.Add(entry ? entry : new wxMimeTypeCommands); // change nIndex so we can use it below to add the extensions - nIndex = m_aExtensions.Add(wxEmptyString); + m_aExtensions.Add(wxEmptyString); + nIndex = m_aExtensions.size(); m_aDescriptions.Add(strDesc); }