Commit 0fbe5eff authored by Dan Pascu's avatar Dan Pascu

Updated list of disabled actions

parent c3041234
...@@ -341,7 +341,8 @@ class ChatWebPage(QWebPage): ...@@ -341,7 +341,8 @@ class ChatWebPage(QWebPage):
super(ChatWebPage, self).__init__(parent) super(ChatWebPage, self).__init__(parent)
self.setLinkDelegationPolicy(QWebPage.DelegateAllLinks) self.setLinkDelegationPolicy(QWebPage.DelegateAllLinks)
self.linkClicked.connect(QDesktopServices.openUrl) self.linkClicked.connect(QDesktopServices.openUrl)
disable_actions = {QWebPage.OpenLink, QWebPage.OpenLinkInNewWindow, QWebPage.DownloadLinkToDisk, QWebPage.OpenImageInNewWindow, QWebPage.DownloadImageToDisk, disable_actions = {QWebPage.OpenLink, QWebPage.OpenLinkInNewWindow, QWebPage.OpenLinkInThisWindow, QWebPage.DownloadLinkToDisk,
QWebPage.OpenImageInNewWindow, QWebPage.DownloadImageToDisk, QWebPage.DownloadMediaToDisk,
QWebPage.Back, QWebPage.Forward, QWebPage.Stop, QWebPage.Reload} QWebPage.Back, QWebPage.Forward, QWebPage.Stop, QWebPage.Reload}
for action in (self.action(action) for action in disable_actions): for action in (self.action(action) for action in disable_actions):
action.setVisible(False) action.setVisible(False)
......
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