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