Commit 93462698 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Use Cancel instead of Discard

On some platform, QMessageBox.Discard results in "Close without Saving" instead of "Discard", which is not what is intended here
parent c6ac6585
......@@ -1912,9 +1912,9 @@ class SDL_View(QtGui.QGraphicsView, object):
msg_box.setText("We recommend to make a semantic check of the "
"model now.\n\n"
"Choose Apply to perform this check "
"and Discard otherwise.")
"and Cancel otherwise.")
msg_box.setStandardButtons(QtGui.QMessageBox.Apply
| QtGui.QMessageBox.Discard)
| QtGui.QMessageBox.Cancel)
msg_box.setDefaultButton(QtGui.QMessageBox.Apply)
res = msg_box.exec_()
if res == QtGui.QMessageBox.Apply:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment