]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
i18n files are installed as part of wxBase (and should be ideally part of separate...
[wxWidgets.git] / src / common / filesys.cpp
index 5e99f9787a01d6c3a926876059f13a4bff1fe2cd..405598e9c2aca71d01dbfe54cae8f2741a51f9f3 100644 (file)
@@ -482,7 +482,9 @@ bool wxFileSystem::FindFileInPath(wxString *pStr,
 
 void wxFileSystem::AddHandler(wxFileSystemHandler *handler)
 {
 
 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)
 }
 
 bool wxFileSystem::HasHandlerForPath(const wxString &location)