Commit dba8afeb authored by Dan Pascu's avatar Dan Pascu

Removed unnecessary intermediary wrapper for slot

parent 2ee9485d
......@@ -340,7 +340,7 @@ class ChatWebPage(QWebPage):
def __init__(self, parent=None):
super(ChatWebPage, self).__init__(parent)
self.setLinkDelegationPolicy(QWebPage.DelegateAllLinks)
self.linkClicked.connect(self._SH_LinkClicked)
self.linkClicked.connect(QDesktopServices.openUrl)
# self.downloadRequested.connect(self._SH_DownloadRequested)
# self.setForwardUnsupportedContent(True)
# self.unsupportedContent.connect(self._SH_UnsupportedContent)
......@@ -355,9 +355,6 @@ class ChatWebPage(QWebPage):
return False
return super(ChatWebPage, self).acceptNavigationRequest(frame, request, navigation_type)
def _SH_LinkClicked(self, url):
QDesktopServices.openUrl(url)
# def _SH_DownloadRequested(self, request):
# print "-- download requested", request.url().toString()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment