← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3915: Final fix for LP:1598174

 

------------------------------------------------------------
revno: 3915
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2016-07-04 19:53:54 +0200
message:
  Final fix for LP:1598174
modified:
  gui/qt5/__init__.py


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'gui/qt5/__init__.py'
--- gui/qt5/__init__.py	2016-07-01 20:21:18 +0000
+++ gui/qt5/__init__.py	2016-07-04 17:53:54 +0000
@@ -42,6 +42,9 @@
 
 sphinxDocWrapperPage=sphinxPrefix+'/yade.wrapper.html'
 
+def sslErrorHandler(reply, errorList):
+	reply.ignoreSslErrors()
+
 def openUrl(url):
 	global maxWebWindows,webWindows
 	reuseLast=False
@@ -54,7 +57,7 @@
 		if len(webWindows)<maxWebWindows: webWindows.append(QtWebKitWidgets.QWebView())
 		else: webWindows=webWindows[1:]+[webWindows[0]]
 	web=webWindows[-1]
-	connect(web.page().networkAccessManager(),SIGNAL("sslErrors (QNetworkReply *, const QList<QSslError> &)"),sslErrorHandler)
+	web.page().networkAccessManager().sslErrors.connect(sslErrorHandler)
 	web.load(QUrl(url))
 	web.setWindowTitle(url)
 	web.setFocus()