50 """ |
50 """ |
51 Private slot to add an entry to the whitelist. |
51 Private slot to add an entry to the whitelist. |
52 """ |
52 """ |
53 host, ok = QInputDialog.getText( |
53 host, ok = QInputDialog.getText( |
54 self, |
54 self, |
55 self.trUtf8("ClickToFlash Whitelist"), |
55 self.tr("ClickToFlash Whitelist"), |
56 self.trUtf8("Enter host name to add to whitelist:"), |
56 self.tr("Enter host name to add to whitelist:"), |
57 QLineEdit.Normal) |
57 QLineEdit.Normal) |
58 if ok and host != "" and host not in self.__model.stringList(): |
58 if ok and host != "" and host not in self.__model.stringList(): |
59 self.__model.insertRow(self.__model.rowCount()) |
59 self.__model.insertRow(self.__model.rowCount()) |
60 self.__model.setData( |
60 self.__model.setData( |
61 self.__model.index(self.__model.rowCount() - 1), host) |
61 self.__model.index(self.__model.rowCount() - 1), host) |