Showing the changes to plugins/JSAPIExample/src/JSAPIExample.cpp (1 of 14 files). Show all
Unified · Split
| @@ -162,6 +162,7 @@ namespace REPLACE_ME_WITH_UNIQUE_NAME { · 161 unmodified lines | ||
| 162 | 162 | * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector |
| 163 | 163 | */ |
| 164 | 164 | ScriptValue getScopedSettings(const QString& scope) { |
| 165 | + Q_ASSERT(engine); | |
| 165 | 166 | auto engine = Scriptable::engine(); |
| 166 | 167 | if (!engine) { |
| 167 | 168 | return ScriptValue(); |