mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 21:33:48 +02:00
Merge pull request #14083 from sethalves/fix-recording-upload-crash
call saveRecordingToAsset callback on correct thread
This commit is contained in:
commit
e5d9c0d442
1 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,8 @@ bool RecordingScriptingInterface::saveRecordingToAsset(QScriptValue getClipAtpUr
|
|||
}
|
||||
|
||||
if (auto upload = DependencyManager::get<AssetClient>()->createUpload(recording::Clip::toBuffer(_lastClip))) {
|
||||
QObject::connect(upload, &AssetUpload::finished, this, [=](AssetUpload* upload, const QString& hash) mutable {
|
||||
QObject::connect(upload, &AssetUpload::finished,
|
||||
getClipAtpUrl.engine(), [=](AssetUpload* upload, const QString& hash) mutable {
|
||||
QString clip_atp_url = "";
|
||||
|
||||
if (upload->getError() == AssetUpload::NoError) {
|
||||
|
|
Loading…
Reference in a new issue