aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRael <rael.gc@gmail.com>2015-11-01 21:33:27 -0200
committerRael <rael.gc@gmail.com>2015-11-01 21:33:27 -0200
commit2aac443cf17a85a3b87958b35506402cc527c575 (patch)
tree440f8d063d931c0a9ca62fe810e573d14bb59b12
parent726c716436566c32792ef7ab7415547a6fc5fe48 (diff)
downloadscudcloud-2aac443cf17a85a3b87958b35506402cc527c575.zip
scudcloud-2aac443cf17a85a3b87958b35506402cc527c575.tar.gz
scudcloud-2aac443cf17a85a3b87958b35506402cc527c575.tar.bz2
Calling just overrideNotification on wrapper timer
-rw-r--r--scudcloud-1.0/lib/wrapper.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py
index 17f6c92..084c631 100644
--- a/scudcloud-1.0/lib/wrapper.py
+++ b/scudcloud-1.0/lib/wrapper.py
@@ -31,14 +31,17 @@ class Wrapper(QWebView):
# Starting a timer that will check by server side reloads (which drops ScudCloud notification)
def setupTimer(self):
timer = QTimer(self)
- timer.timeout.connect(self._loadFinished)
+ timer.timeout.connect(self.overrideNotifications)
# Hope each 10 minutes will not be produce high CPU usage
timer.setInterval(600000)
timer.start()
+ def overrideNotifications(self):
+ self.call("overrideNotifications")
+
def permissionRequested(self, frame, feature):
self.page().setFeaturePermission(frame, feature, QWebPage.PermissionGrantedByUser)
- self.call("overrideNotifications")
+ self.overrideNotifications()
def configure_proxy(self):
proxy = urlparse(os.environ.get('http_proxy') or os.environ.get('HTTP_PROXY'))