X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fwwindow.C;h=cdfa5349526c6470234d904a16763eb2cc88d2b0;hb=bd570c5fa5f5473b670673368dc30356aa6c43fa;hp=4f522f3179f099de3ee2622836771b6a3534a6eb;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/wwindow.C b/cinelerra-5.1/cinelerra/wwindow.C index 4f522f31..cdfa5349 100644 --- a/cinelerra-5.1/cinelerra/wwindow.C +++ b/cinelerra-5.1/cinelerra/wwindow.C @@ -32,6 +32,7 @@ WWindow::WWindow(MWindow *mwindow) { this->mwindow = mwindow; this->result = 0; + this->gui = 0; } WWindow::~WWindow() @@ -59,7 +60,7 @@ BC_Window* WWindow::new_gui() BC_DisplayInfo display_info; int x = display_info.get_abs_cursor_x(); int y = display_info.get_abs_cursor_y(); - WWindowGUI *gui = new WWindowGUI(this, x, y); + gui = new WWindowGUI(this, x, y); gui->create_objects(); return gui; } @@ -83,7 +84,8 @@ void WWindowGUI::create_objects() int x = 10, y = 10; add_subwindow(new BC_TextBox(x, y, get_w()-50, 3, thread->warn_text)); y = get_h() - 30; - add_subwindow(new WDisable(this, x, y)); + if( thread->do_warning ) + add_subwindow(new WDisable(this, x, y)); y = get_h() - BC_CancelButton::calculate_h() - 10; x = get_w() - BC_CancelButton::calculate_w() - 10; add_subwindow(new BC_CancelButton(x, y));