clip picons as clip_icon.png, vwindow hang, fix for drop target test
[goodguy/history.git] / cinelerra-5.1 / cinelerra / clippopup.C
index db11a158ec7cf06493224dcb31c5fa7bd5bb62bc..a364947a94269793fc6db9c92221f263e97cc167 100644 (file)
@@ -449,6 +449,10 @@ int ClipPopupNest::handle_event()
                        dtm.tm_year+1900, dtm.tm_mon+1, dtm.tm_mday,
                        dtm.tm_hour, dtm.tm_min, dtm.tm_sec);
                clip_edl->set_path(path);
+               sprintf(new_clip->local_session->clip_icon,
+                       "clip_%02d%02d%02d-%02d%02d%02d.png",
+                       dtm.tm_year+1900, dtm.tm_mon+1, dtm.tm_mday,
+                       dtm.tm_hour, dtm.tm_min, dtm.tm_sec);
                new_clip->set_path(path);
                new_clip->to_nested(clip_edl);
                int idx = edl->clips.number_of(clip);
@@ -506,7 +510,6 @@ int ClipPopupUnNest::handle_event()
                        }
                        else
                                edl->clips.append(new_clip);
-                       edl->clips.add_clip(new_clip);
                        popup->gui->async_update_assets();
                }
        }