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) |