Commit 1cd4fb1f authored by luyikei's avatar luyikei

MainWorkflow: Fix wrong uuid given by libraryClipInfo

I don't know why this happend... So shameful
parent eb1f07e2
...@@ -169,7 +169,7 @@ Item { ...@@ -169,7 +169,7 @@ Item {
} }
else { else {
var newClipInfo = workflow.libraryClipInfo( drag.getDataAsString( "vlmc/uuid" ) ); var newClipInfo = workflow.libraryClipInfo( drag.getDataAsString( "vlmc/uuid" ) );
currentUuid = "" + newClipInfo["libraryUuid"]; currentUuid = "" + newClipInfo["uuid"];
newClipInfo["position"] = ptof( drag.x ); newClipInfo["position"] = ptof( drag.x );
if ( newClipInfo["audio"] ) { if ( newClipInfo["audio"] ) {
newClipInfo["uuid"] = "audioUuid"; newClipInfo["uuid"] = "audioUuid";
......
...@@ -241,7 +241,7 @@ MainWorkflow::libraryClipInfo( const QString& uuid ) ...@@ -241,7 +241,7 @@ MainWorkflow::libraryClipInfo( const QString& uuid )
h["video"] = c->media()->hasVideoTracks(); h["video"] = c->media()->hasVideoTracks();
h["begin"] = c->begin(); h["begin"] = c->begin();
h["end"] = c->end(); h["end"] = c->end();
h["uuid"] = "libraryUuid"; h["uuid"] = c->uuid().toString();
return QJsonObject::fromVariantHash( h ); return QJsonObject::fromVariantHash( h );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment