X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmainundo.C;h=5b0a70bd2ec77e9b3d584a9fe8a617f743f928f5;hb=83b70dd60863377cb281e6be5206304e10373e30;hp=c19a6ada63a00de0b368b5fb6d5f00d0f3c1e375;hpb=d6c6d4a07f9ff4c6b8f5d034306df375815b060a;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/mainundo.C b/cinelerra-5.1/cinelerra/mainundo.C index c19a6ada..5b0a70bd 100644 --- a/cinelerra-5.1/cinelerra/mainundo.C +++ b/cinelerra-5.1/cinelerra/mainundo.C @@ -198,11 +198,9 @@ int MainUndo::undo() } if( current ) { // Set the redo text to the current description - if( mwindow->gui ) { - UndoStackItem *next = NEXT; - mwindow->gui->mainmenu->redo-> - update_caption(next ? next->get_description() : ""); - } + UndoStackItem *next = NEXT; + mwindow->gui->mainmenu->redo-> + update_caption(next ? next->get_description() : ""); char *current_data = current->get_data(); if( current_data ) { FileXML file;