Add "add X as trusted domain" room menu option
This commit is contained in:
parent
7465c85d8e
commit
f38feb05a8
@ -555,6 +555,9 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
pathFound = self._syncplayClient.fileSwitch.findFilepath(filename)
|
pathFound = self._syncplayClient.fileSwitch.findFilepath(filename)
|
||||||
if pathFound:
|
if pathFound:
|
||||||
menu.addAction(QtGui.QPixmap(resourcespath + u"film_go.png"), getMessage("openusersfile-menu-label").format(shortUsername), lambda: self.openFile(pathFound))
|
menu.addAction(QtGui.QPixmap(resourcespath + u"film_go.png"), getMessage("openusersfile-menu-label").format(shortUsername), lambda: self.openFile(pathFound))
|
||||||
|
if self._syncplayClient.isUntrustedTrustableURI(filename):
|
||||||
|
domain = utils.getDomainFromURL(filename)
|
||||||
|
menu.addAction(QtGui.QPixmap(resourcespath + u"shield_add.png"),getMessage("addtrusteddomain-menu-label").format(domain), lambda: self.addTrustedDomain(domain))
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
menu.exec_(self.listTreeView.viewport().mapToGlobal(position))
|
menu.exec_(self.listTreeView.viewport().mapToGlobal(position))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user