Preferences/ConfigurationDialog.py

changeset 465
c20e25deb33a
parent 426
161992758137
child 492
01f3384d535a
diff -r a2b1d1770ef0 -r c20e25deb33a Preferences/ConfigurationDialog.py
--- a/Preferences/ConfigurationDialog.py	Mon Aug 09 15:36:47 2010 +0200
+++ b/Preferences/ConfigurationDialog.py	Mon Aug 09 15:49:03 2010 +0200
@@ -610,8 +610,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('preferencesChanged'), 
                      self.__preferencesChanged)
         
@@ -652,8 +652,8 @@
         self.setCentralWidget(self.cw)
         self.resize(size)
         
-        self.connect(self.cw.buttonBox, SIGNAL("accepted()"), self.accept)
-        self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.close)
+        self.cw.buttonBox.accepted[()].connect(self.accept)
+        self.cw.buttonBox.rejected[()].connect(self.close)
         
     def showConfigurationPageByName(self, pageName):
         """
@@ -670,4 +670,4 @@
         self.cw.setPreferences()
         Preferences.saveResetLayout()
         Preferences.syncPreferences()
-        self.close()
+        self.close()
\ No newline at end of file

eric ide

mercurial