X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fexportedl.C;h=73e51cf16167bc165afb9e6af5cca1df6dca459c;hp=8cbbbf3f238ae3950197d2cb57ff71e8f226bf22;hb=b9f98da8f1cd8b7b31ead02fa41f299b56cac3da;hpb=6853a2c0b04cc5ff4e87a2022c914227f925cb7f diff --git a/cinelerra-5.1/cinelerra/exportedl.C b/cinelerra-5.1/cinelerra/exportedl.C index 8cbbbf3f..73e51cf1 100644 --- a/cinelerra-5.1/cinelerra/exportedl.C +++ b/cinelerra-5.1/cinelerra/exportedl.C @@ -26,12 +26,12 @@ #include "edits.h" #include "edl.h" #include "edlsession.h" -#include "errorbox.h" #include "file.h" #include "filesystem.h" #include "filexml.h" #include "language.h" #include "localsession.h" +#include "mainerror.h" #include "mainsession.h" #include "mutex.h" #include "mwindowgui.h" @@ -113,6 +113,10 @@ void ExportEDLAsset::export_it() { FILE *fh; fh = fopen(path, "w+"); + if( !fh ) { + eprintf("unable to open file: %s", path); + return; + } // We currently only support exporting one track at a time // Find the track... @@ -362,6 +366,7 @@ ExportEDLWindow::~ExportEDLWindow() void ExportEDLWindow::create_objects() { + lock_window("ExportEDLWindow::create_objects"); int x = 5, y = 5; add_subwindow(new BC_Title(x, y, _("Select a file to export to:"))); @@ -418,6 +423,7 @@ void ExportEDLWindow::create_objects() add_subwindow(new BC_OKButton(this)); add_subwindow(new BC_CancelButton(this)); show_window(); + unlock_window(); }