X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmainundo.C;h=520bc2ee729a876e5c7b68c4b3213c409fb45ad3;hb=fb3e53778e49a406768506de9bf8edfd3d4c36e6;hp=0c149cd40acc445d8626a060b7f7cae831ce0e00;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/mainundo.C b/cinelerra-5.1/cinelerra/mainundo.C index 0c149cd4..520bc2ee 100644 --- a/cinelerra-5.1/cinelerra/mainundo.C +++ b/cinelerra-5.1/cinelerra/mainundo.C @@ -209,12 +209,10 @@ int MainUndo::undo() //printf("MainUndo::undo %d %s\n", __LINE__, current->get_filename()); mwindow->set_filename(current->get_filename()); - if( mwindow->gui ) { // Now update the menu with the after entry - UndoStackItem *prev = PREVIOUS; - mwindow->gui->mainmenu->undo-> - update_caption(prev ? prev->get_description() : ""); - } + UndoStackItem *prev = PREVIOUS; + mwindow->gui->mainmenu->undo-> + update_caption(prev ? prev->get_description() : ""); } } @@ -269,11 +267,11 @@ int MainUndo::load_from_undo(FileXML *file, uint32_t load_flags) } mwindow->edl->load_xml(file, load_flags); for( Asset *asset=mwindow->edl->assets->first; asset; asset=asset->next ) { - mwindow->mainindexes->add_next_asset(0, asset); + mwindow->mainindexes->add_indexable(asset); } for( int i=0; iedl->nested_edls.size(); ++i ) { EDL *nested_edl = mwindow->edl->nested_edls[i]; - mwindow->mainindexes->add_next_asset(0, nested_edl); + mwindow->mainindexes->add_indexable(nested_edl); } mwindow->mainindexes->start_build(); mwindow->update_plugin_guis(1);