X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmainundo.C;h=ba9b6c337ed85ca1e1a8a824cc41add662e27783;hb=052becff04e4f4a4240a87c6b2f2f4023b65d247;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..ba9b6c33 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() : ""); } }