]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
fixed wxXmlResource::Load's detection of filenames to be done as early as possible
[wxWidgets.git] / src / common / utilscmn.cpp
index 2b6fda7586ba4766c35635b270c309794a82f600..02befc3f4381b7239c687fcadc762e401d20984b 100644 (file)
@@ -1037,9 +1037,13 @@ static bool DoLaunchDefaultBrowserHelper(const wxString& urlOrig, int flags)
 
         if ( uri.GetScheme() == "file" )
         {
+            // TODO: extract URLToFileName() to some always compiled in
+            //       function
+#if wxUSE_FILESYSTEM
             // ShellExecuteEx() doesn't like the "file" scheme when opening local files; 
             // remove it
             url = wxFileSystem::URLToFileName(url).GetFullPath();
+#endif // wxUSE_FILESYSTEM
         }
     }