History

Added QTimer* script data type and some nullptr checks

ksuprynowicz committed 4 years ago

Commit e9984c71 parent 80e5f2421 files · +43 −11Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 21 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+1−0
@@ -604,6 +604,7 @@ void WindowScriptingInterface::closeMessageBox(int id) { · 603 unmodified lines
604 604
605void WindowScriptingInterface::onMessageBoxSelected(int button) {605void 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.