load files search box, avoid segv in get_prev_keyframe, fix titles only handles,...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / mainundo.C
index 14268e1d37709f5d0b57e17cb4b89c919c53450d..3a7d92ca440619b72fc6af67a7a5d2f3fc3ae975 100644 (file)
@@ -261,10 +261,8 @@ int MainUndo::load_from_undo(FileXML *file, uint32_t load_flags)
                mwindow->gui->lock_window("MainUndo::load_from_undo");
        }
        if( (load_flags & LOAD_ALL) == LOAD_ALL ) {
-               EDL *edl = new EDL;
-               edl->create_objects();
                mwindow->edl->remove_user();
-               mwindow->edl = edl;
+               mwindow->init_edl();
        }
        mwindow->edl->load_xml(file, load_flags);
        for( Asset *asset=mwindow->edl->assets->first; asset; asset=asset->next ) {