Helpviewer/Network/SendRefererWhitelistDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3345
071afe8be2a1
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
48 """ 48 """
49 Private slot to add an entry to the whitelist. 49 Private slot to add an entry to the whitelist.
50 """ 50 """
51 host, ok = QInputDialog.getText( 51 host, ok = QInputDialog.getText(
52 self, 52 self,
53 self.trUtf8("Send Referer Whitelist"), 53 self.tr("Send Referer Whitelist"),
54 self.trUtf8("Enter host name to add to the whitelist:"), 54 self.tr("Enter host name to add to the whitelist:"),
55 QLineEdit.Normal) 55 QLineEdit.Normal)
56 if ok and host != "" and host not in self.__model.stringList(): 56 if ok and host != "" and host not in self.__model.stringList():
57 self.__model.insertRow(self.__model.rowCount()) 57 self.__model.insertRow(self.__model.rowCount())
58 self.__model.setData( 58 self.__model.setData(
59 self.__model.index(self.__model.rowCount() - 1), host) 59 self.__model.index(self.__model.rowCount() - 1), host)

eric ide

mercurial