From 824ab396d0db646c64d57a75b08e80fbc0b5de8e Mon Sep 17 00:00:00 2001 From: Good Guy Date: Thu, 14 Feb 2019 13:08:51 -0700 Subject: [PATCH 1/1] handle_done_event booby lock fixes --- cinelerra-5.1/plugins/sketcher/sketcherwindow.C | 2 ++ cinelerra-5.1/plugins/titler/titlerwindow.C | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C index 7cbf15dd..4a0f18f9 100644 --- a/cinelerra-5.1/plugins/sketcher/sketcherwindow.C +++ b/cinelerra-5.1/plugins/sketcher/sketcherwindow.C @@ -122,7 +122,9 @@ void SketcherCurveColor::handle_done_event(int result) if( ci >= 0 && ci < config.curves.size() ) { SketcherCurve *cv = config.curves[ci]; cv->color = color; + gui->lock_window("SketcherCurveColor::handle_done_event"); gui->curve_list->update(ci); + gui->unlock_window(); gui->send_configure_change(); } } diff --git a/cinelerra-5.1/plugins/titler/titlerwindow.C b/cinelerra-5.1/plugins/titler/titlerwindow.C index 6ad7e48d..a0c78826 100644 --- a/cinelerra-5.1/plugins/titler/titlerwindow.C +++ b/cinelerra-5.1/plugins/titler/titlerwindow.C @@ -1505,7 +1505,9 @@ void TitleColorPopup::handle_done_event(int result) { if( !result ) { char txt[BCSTRLEN]; sprintf(txt, "<%s #%06x>", _(KW_COLOR), color_value); + window->lock_window("TitleColorPopup::handle_done_event"); window->insert_ibeam(txt); + window->unlock_window(); } } @@ -1527,7 +1529,9 @@ void TitlePngPopup::handle_done_event(int result) BrowseButtonWindow *gui = (BrowseButtonWindow *)get_gui(); const char *path = gui->get_submitted_path(); char txt[BCSTRLEN]; sprintf(txt, "<%s %s>", _(KW_PNG), path); + window->lock_window("TitlePngPopup::handle_done_event"); window->insert_ibeam(txt); + window->unlock_window(); } BC_Window *TitlePngPopup::new_gui() -- 2.26.2