diff -r 5f7d5ce932fc -r 5d556f9040e3 Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py --- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Fri Jun 28 19:45:25 2013 +0200 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Fri Jun 28 19:49:58 2013 +0200 @@ -95,15 +95,15 @@ self.nextButton.setEnabled(False) if fromEric: - self.buttonBox.button(QDialogButtonBox.Close).hide() + self.buttonBox.setStandardButtons( + QDialogButtonBox.Cancel | QDialogButtonBox.Ok) self.copyButton = None else: self.copyButton = \ self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) self.copyButton.setToolTip( self.trUtf8("Copy the regular expression to the clipboard")) - self.buttonBox.button(QDialogButtonBox.Ok).hide() - self.buttonBox.button(QDialogButtonBox.Cancel).hide() + self.buttonBox.setStandardButtons(QDialogButtonBox.Close) self.variableLabel.hide() self.variableLineEdit.hide() self.variableLine.hide()