diff options
author | Rael <rael.gc@gmail.com> | 2015-03-23 08:07:37 -0300 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-03-23 08:07:37 -0300 |
commit | 18493af5311529440fd997c822b27bc368dfa77c (patch) | |
tree | ca2aa632f0f8c6b28a595e12848b392190b41fc4 /scudcloud-1.0/lib/leftpane.py | |
parent | 9f459693b60886637ce1d3dda6d349157becb7f7 (diff) | |
download | scudcloud-18493af5311529440fd997c822b27bc368dfa77c.zip scudcloud-18493af5311529440fd997c822b27bc368dfa77c.tar.gz scudcloud-18493af5311529440fd997c822b27bc368dfa77c.tar.bz2 |
Fixing stopAlert crashing (#41)
Diffstat (limited to 'scudcloud-1.0/lib/leftpane.py')
-rw-r--r-- | scudcloud-1.0/lib/leftpane.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scudcloud-1.0/lib/leftpane.py b/scudcloud-1.0/lib/leftpane.py index 8c35e3f..533a7c1 100644 --- a/scudcloud-1.0/lib/leftpane.py +++ b/scudcloud-1.0/lib/leftpane.py @@ -38,7 +38,8 @@ class LeftPane(QWebView): self.page().currentFrame().evaluateJavaScript("LeftPane.alert('"+team+"');") def stopAlert(self, team): - self.page().currentFrame().evaluateJavaScript("LeftPane.stopAlert('"+team+"');") + if team is not None: + self.page().currentFrame().evaluateJavaScript("LeftPane.stopAlert('"+team+"');") @QtCore.pyqtSlot(str) def switchTo(self, url): |