Showing the changes to libraries/script-engine/src/RecordingScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -56,6 +56,11 @@ bool RecordingScriptingInterface::loadRecording(const QString& url) { · 55 unmodified lines | ||
| 56 | 56 | using namespace recording; |
| 57 | 57 | |
| 58 | 58 | auto loader = ClipCache::instance().getClipLoader(url); |
| 59 | + if (!loader) { | |
| 60 | + qWarning() << "Clip failed to load from " << url; | |
| 61 | + return false; | |
| 62 | + } | |
| 63 | + | |
| 59 | 64 | if (!loader->isLoaded()) { |
| 60 | 65 | QEventLoop loop; |
| 61 | 66 | QObject::connect(loader.data(), &Resource::loaded, &loop, &QEventLoop::quit); |