Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 21 files). Show all
Unified · Split
| @@ -604,6 +604,7 @@ void WindowScriptingInterface::closeMessageBox(int id) { · 603 unmodified lines | |||
| 604 | 604 | ||
| 605 | void WindowScriptingInterface::onMessageBoxSelected(int button) { | 605 | void WindowScriptingInterface::onMessageBoxSelected(int button) { |
| 606 | auto messageBox = qobject_cast<QQuickItem*>(sender()); | 606 | auto messageBox = qobject_cast<QQuickItem*>(sender()); |
| 607 | Q_ASSERT(messageBox != nullptr); | ||
| 607 | auto keys = _messageBoxes.keys(messageBox); | 608 | auto keys = _messageBoxes.keys(messageBox); |
| 608 | if (keys.length() > 0) { | 609 | if (keys.length() > 0) { |
| 609 | auto id = keys[0]; // Should be just one message box. | 610 | auto id = keys[0]; // Should be just one message box. |