PluginManager/PluginRepositoryDialog.py

changeset 465
c20e25deb33a
parent 464
a2b1d1770ef0
child 495
b31b0bffa5b0
diff -r a2b1d1770ef0 -r c20e25deb33a PluginManager/PluginRepositoryDialog.py
--- a/PluginManager/PluginRepositoryDialog.py	Mon Aug 09 15:36:47 2010 +0200
+++ b/PluginManager/PluginRepositoryDialog.py	Mon Aug 09 15:49:03 2010 +0200
@@ -545,8 +545,8 @@
         self.__layout.addWidget(self.cw)
         self.resize(size)
         
-        self.connect(self.cw.buttonBox, SIGNAL("accepted()"), self.accept)
-        self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.reject)
+        self.cw.buttonBox.accepted[()].connect(self.accept)
+        self.cw.buttonBox.rejected[()].connect(self.reject)
         self.connect(self.cw, SIGNAL("closeAndInstall"), self.__closeAndInstall)
         
     def __closeAndInstall(self):
@@ -579,8 +579,8 @@
         self.setCentralWidget(self.cw)
         self.resize(size)
         
-        self.connect(self.cw.buttonBox, SIGNAL("accepted()"), self.close)
-        self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.close)
+        self.cw.buttonBox.accepted[()].connect(self.close)
+        self.cw.buttonBox.rejected[()].connect(self.close)
         self.connect(self.cw, SIGNAL("closeAndInstall"), self.__startPluginInstall)
     
     def __startPluginInstall(self):

eric ide

mercurial