void ClipEDLs::add_clip(EDL *edl)
{
+ edl->folder_no = AW_CLIP_FOLDER;
append(edl);
edl->add_user();
}
}
-EDL* ClipEDLs::get_copy(EDL *src)
+EDL* ClipEDLs::get_nested(EDL *src)
{
if( !src ) return 0;
+ for( int i=0; i<size(); ++i ) {
+ EDL *dst = get(i);
+ if( src == dst || src->id == dst->id ) return dst;
+ }
for( int i=0; i<size(); ++i ) {
EDL *dst = get(i);
if( !strcmp(dst->path, src->path) ) return dst;