vicon drawing segv fix, beeper consolidation, render_effect resize wdw fix, valgrind...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / mainundo.C
index 0c149cd40acc445d8626a060b7f7cae831ce0e00..ba9b6c337ed85ca1e1a8a824cc41add662e27783 100644 (file)
@@ -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() : "");
                }
        }