Helpviewer/Network/NoCacheHostsDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3345
071afe8be2a1
child 3656
441956d8fce5
--- a/Helpviewer/Network/NoCacheHostsDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Helpviewer/Network/NoCacheHostsDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -42,8 +42,8 @@
         self.searchEdit.textChanged.connect(
             self.__proxyModel.setFilterFixedString)
         
-        self.removeButton.clicked[()].connect(self.noCacheList.removeSelected)
-        self.removeAllButton.clicked[()].connect(self.noCacheList.removeAll)
+        self.removeButton.clicked.connect(self.noCacheList.removeSelected)
+        self.removeAllButton.clicked.connect(self.noCacheList.removeAll)
     
     @pyqtSlot()
     def on_addButton_clicked(self):
@@ -52,8 +52,8 @@
         """
         host, ok = QInputDialog.getText(
             self,
-            self.trUtf8("Not Cached Hosts"),
-            self.trUtf8("Enter host name to add to the list:"),
+            self.tr("Not Cached Hosts"),
+            self.tr("Enter host name to add to the list:"),
             QLineEdit.Normal)
         if ok and host != "" and host not in self.__model.stringList():
             self.__model.insertRow(self.__model.rowCount())

eric ide

mercurial