Skip to content

Commit

Permalink
refs #10118. Fix button names.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Sep 2, 2014
1 parent 2a84126 commit f556d11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py
Expand Up @@ -113,7 +113,10 @@ def _save_check(self):
"""
msgBox = QtGui.QMessageBox()
msgBox.setText("The table has been modified. Do you want to save your changes?")
msgBox.setStandardButtons(QtGui.QMessageBox.Save | QtGui.QMessageBox.Discard | QtGui.QMessageBox.Cancel)

msgBox.addButton(QtGui.QPushButton('Accept'), QtGui.QMessageBox.YesRole)
msgBox.addButton(QtGui.QPushButton('Discard'), QtGui.QMessageBox.NoRole)
msgBox.addButton(QtGui.QPushButton('Cancel'), QtGui.QMessageBox.RejectRole)
msgBox.setIcon(QtGui.QMessageBox.Question)
msgBox.setDefaultButton(QtGui.QMessageBox.Save)
msgBox.setEscapeButton(QtGui.QMessageBox.Cancel)
Expand Down

0 comments on commit f556d11

Please sign in to comment.