Showing the changes to libraries/script-engine/src/RecordingScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -243,7 +243,8 @@ bool RecordingScriptingInterface::saveRecordingToAsset(QScriptValue getClipAtpUr · 242 unmodified lines | ||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | if (auto upload = DependencyManager::get<AssetClient>()->createUpload(recording::Clip::toBuffer(_lastClip))) { |
| 246 | − QObject::connect(upload, &AssetUpload::finished, this, [=](AssetUpload* upload, const QString& hash) mutable { | |
| 246 | + QObject::connect(upload, &AssetUpload::finished, | |
| 247 | + getClipAtpUrl.engine(), [=](AssetUpload* upload, const QString& hash) mutable { | |
| 247 | 248 | QString clip_atp_url = ""; |
| 248 | 249 | |
| 249 | 250 | if (upload->getError() == AssetUpload::NoError) { |