rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / cinelerra / clipedls.C
index 65dd58e2c23fc3b36d038189d3bfff46dd5ada7b..83c23ee098f39633581606352a0da72d801dddae 100644 (file)
@@ -22,6 +22,7 @@ void ClipEDLs::clear()
 
 void ClipEDLs::add_clip(EDL *edl)
 {
+       edl->folder_no = AW_CLIP_FOLDER;
        append(edl);
        edl->add_user();
 }
@@ -35,9 +36,13 @@ void ClipEDLs::remove_clip(EDL *clip)
 }
 
 
-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;