Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -96,7 +96,7 @@ void WindowScriptingInterface::alert(const QString& message) { · 95 unmodified lines | ||
| 96 | 96 | /// \param const QString& message message to display |
| 97 | 97 | /// \return QScriptValue `true` if 'Yes' was clicked, `false` otherwise |
| 98 | 98 | QScriptValue WindowScriptingInterface::confirm(const QString& message) { |
| 99 | − return QScriptValue((QMessageBox::Yes == OffscreenUi::question("", message))); | |
| 99 | + return QScriptValue((QMessageBox::Yes == OffscreenUi::question("", message, QMessageBox::Yes | QMessageBox::No))); | |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /// Display a prompt with a text box |