aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scudcloud-1.0/lib/wrapper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py
index 318ceb5..eb45713 100644
--- a/scudcloud-1.0/lib/wrapper.py
+++ b/scudcloud-1.0/lib/wrapper.py
@@ -24,8 +24,12 @@ class Wrapper(QWebView):
self.connect(self, SIGNAL("loadStarted()"), self.loadStarted)
self.connect(self, SIGNAL("loadFinished(bool)"), self.loadFinished)
self.connect(self, SIGNAL("linkClicked(const QUrl&)"), self.linkClicked)
+ #self.page().connect(self.page(), SIGNAL("featurePermissionRequested (QWebFrame*,QWebPage::Feature)"), self.permissionRequested)
self.addActions()
+ def permissionRequested(self, frame, feature):
+ self.page().setFeaturePermission(frame, feature, QWebPage.PermissionGrantedByUser)
+
def configure_proxy(self):
proxy = urlparse(os.environ.get('http_proxy') or os.environ.get('HTTP_PROXY'))
if proxy.hostname is not None and proxy.port is not None: