Commit 516867cd authored by luyikei's avatar luyikei

Timeline: Clean selectedClips unconditionally

parent 28a2be42
......@@ -254,24 +254,23 @@ Rectangle {
}
onSelectedChanged: {
for ( var i = 0; i < selectedClips.length; ++i )
if ( !selectedClips[i] || selectedClips[i] === clip ) {
selectedClips.splice( i, 1 );
--i;
}
if ( selected === true ) {
selectedClips.push( clip );
var group = findGroup( uuid );
for ( var i = 0; i < ( group ? group.length : 0 ); ++i ) {
for ( i = 0; i < ( group ? group.length : 0 ); ++i ) {
var clipItem = findClipItem( group[i] );
if ( clipItem )
clipItem.selected = true;
}
selectLinkedClip();
}
else {
for ( i = 0; i < selectedClips.length; ++i )
if ( !selectedClips[i] || selectedClips[i] === clip ) {
selectedClips.splice( i, 1 );
--i;
}
}
}
states: [
......
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