X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8b37cedd39bae3a3653003a7f8ae5fecf4df78f..f2c88494b6978bee502f4c856ba9dc7e3b7c3954:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 5e99f9787a..405598e9c2 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -482,7 +482,9 @@ bool wxFileSystem::FindFileInPath(wxString *pStr, void wxFileSystem::AddHandler(wxFileSystemHandler *handler) { - m_Handlers.Append(handler); + // prepend the handler to the beginning of the list because handlers added + // last should have the highest priority to allow overriding them + m_Handlers.Insert((size_t)0, handler); } bool wxFileSystem::HasHandlerForPath(const wxString &location)