Andrew minor fix for console running of Batch Render + RafaMar Spanish updates
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / batchrender.C
index 8a89c92560af3aceda806fe923ea3d1a722931e6..b83f2d6324ce75b3967c9480b2230d1c98186ce0 100644 (file)
@@ -268,9 +268,9 @@ void BatchRenderThread::load_jobs(char *path, Preferences *preferences)
        while( !result ) {
                if( !(result = file.read_tag()) ) {
                        if( file.tag.title_is("JOBS") ) {
-                               if (mwindow->preferences->unsafe_gui)
+                               if (mwindow && mwindow->preferences->unsafe_gui)
                                warn = file.tag.get_property("WARN", 1);
-                               if (!mwindow->preferences->unsafe_gui)
+                               if (mwindow && !mwindow->preferences->unsafe_gui)
                                warn = 0;
                        }
                        else if( file.tag.title_is("JOB") ) {
@@ -296,7 +296,7 @@ void BatchRenderThread::save_jobs(char *path)
 {
        FileXML file;
        file.tag.set_title("JOBS");
-       if (mwindow->preferences->unsafe_gui)
+       if (mwindow && mwindow->preferences->unsafe_gui)
        file.tag.set_property("WARN", warn);
        file.append_tag();
        file.append_newline();