Change default wxWebViewIE offline behavior

Allow opening web pages using this backend on systems without any
network connection too.

See https://github.com/wxWidgets/wxWidgets/pull/1133
This commit is contained in:
Chilau He
2019-01-11 06:48:22 +08:00
committed by Vadim Zeitlin
parent 848d7d67ee
commit c8b977314e

View File

@@ -110,6 +110,10 @@ bool wxWebViewIE::Create(wxWindow* parent,
EnableControlFeature(21 /* FEATURE_DISABLE_NAVIGATION_SOUNDS */);
// Make behaviour consistent with the other backends when loading localhost
// pages without any physical network connection.
SetOfflineMode(false);
LoadURL(url);
return true;
}