handlers added using AddHandler() last must have the highest priority (patch 1522807)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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(0u, handler);
|
||||
}
|
||||
|
||||
bool wxFileSystem::HasHandlerForPath(const wxString &location)
|
||||
|
Reference in New Issue
Block a user