]> git.saurik.com Git - wxWidgets.git/commitdiff
wxZipFSHandler does not report non-local zip archives as openable anymore
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 25 Mar 2001 22:20:34 +0000 (22:20 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 25 Mar 2001 22:20:34 +0000 (22:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fs_zip.cpp

index 3a4f8deab63deaa2f7b52052742d0e6ae84e5180..036c001abdf44ebf8a9612c37c88d8b53b519b07 100644 (file)
@@ -67,7 +67,8 @@ wxZipFSHandler::~wxZipFSHandler()
 bool wxZipFSHandler::CanOpen(const wxString& location)
 {
     wxString p = GetProtocol(location);
-    return (p == wxT("zip"));
+    return (p == wxT("zip")) && 
+           (GetProtocol(GetLeftLocation(location)) == wxT("file"));
 }