wxZipFSHandler does not report non-local zip archives as openable anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user