X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fzwindow.C;h=3c340844cb70734a2ccf039a2783f9606db3629a;hb=c279e21fc2394a7908bbd1ba8c79b116fe9fb14a;hp=5743aa40ab577c0bf5b1dc8140d3e783ce31ddbe;hpb=60f8df69db9ddd8148bfc41a17bb0955b52a45e6;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/zwindow.C b/cinelerra-5.1/cinelerra/zwindow.C index 5743aa40..3c340844 100644 --- a/cinelerra-5.1/cinelerra/zwindow.C +++ b/cinelerra-5.1/cinelerra/zwindow.C @@ -185,6 +185,7 @@ ZWindow::ZWindow(MWindow *mwindow) idx = -1; edl = 0; highlighted = 0; + destroy = 1; title[0] = 0; zgui = 0; } @@ -206,7 +207,9 @@ BC_Window* ZWindow::new_gui() void ZWindow::handle_done_event(int result) { - mwindow->del_mixer(this); + if( destroy ) + mwindow->del_mixer(this); + idx = -1; } void ZWindow::handle_close_event(int result) {