From a456168e3cff14280f5f7489d343e319252d3077 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Wed, 5 Mar 2025 18:30:31 -0700 Subject: [PATCH] Credit SGE - minor change for immediate recompilation on Refresh + --- .../plugins/blendalgebra/blendalgebra.C | 21 +++++++++++++++---- .../plugins/blendprogram/blendprogram.C | 21 +++++++++++++++---- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/cinelerra-5.1/plugins/blendalgebra/blendalgebra.C b/cinelerra-5.1/plugins/blendalgebra/blendalgebra.C index 7d91f535..e1c82200 100644 --- a/cinelerra-5.1/plugins/blendalgebra/blendalgebra.C +++ b/cinelerra-5.1/plugins/blendalgebra/blendalgebra.C @@ -250,7 +250,8 @@ int BlendAlgebraRefresh::handle_event() ctime(&BlendAlgebraTstamp)); #endif plugin->func_lock->unlock(); - return 1; // just reattach all functions, without reconfiguration + plugin->send_configure_change();// no reconfigure, just recheck all functions + return 1; } BlendAlgebraEdit::BlendAlgebraEdit (BlendAlgebra *plugin, @@ -629,7 +630,11 @@ int BlendAlgebraToCurdir::handle_event() if (spath) file_box->fs->extract_name (fname, spath); // cut name from dir if (fname[0]) file_box->fs->join_names (path, dir, fname); - else strcpy (path, dir); // substitute old entered dir with project dir + else // substitute old entered dir with project dir + { + strcpy (path, dir); + strcat (path, "/"); + } // Not exactly sure what operations on FileBox are really important file_box->fs->change_dir (dir); // force it to recognize the new dir @@ -691,7 +696,11 @@ int BlendAlgebraToUsrlib::handle_event() const char *spath = file_box->get_submitted_path();// get name entered so far if (spath) file_box->fs->extract_name (fname, spath); // cut name from dir if (fname[0]) file_box->fs->join_names (path, dir, fname); - else strcpy (path, dir); // substitute old entered dir with user libdir + else // substitute old entered dir with user libdir + { + strcpy (path, dir); + strcat (path, "/"); + } // Reinitialize FileBox with the modified path file_box->fs->change_dir (dir); @@ -727,7 +736,11 @@ int BlendAlgebraToSyslib::handle_event() const char *spath = file_box->get_submitted_path();// get name entered so far if (spath) file_box->fs->extract_name (fname, spath); // cut name from dir if (fname[0]) file_box->fs->join_names (path, dir, fname); - else strcpy (path, dir); // substitute that old dir with system libdir + else // substitute that old dir with system libdir + { + strcpy (path, dir); + strcat (path, "/"); + } // Reinitialize FileBox with the modified path file_box->fs->change_dir (dir); diff --git a/cinelerra-5.1/plugins/blendprogram/blendprogram.C b/cinelerra-5.1/plugins/blendprogram/blendprogram.C index ad2c5417..70f27bc3 100644 --- a/cinelerra-5.1/plugins/blendprogram/blendprogram.C +++ b/cinelerra-5.1/plugins/blendprogram/blendprogram.C @@ -235,7 +235,8 @@ int BlendProgramRefresh::handle_event() ctime(&BlendProgramTstamp)); #endif plugin->func_lock->unlock(); - return 1; // just reattach all functions, without reconfiguration + plugin->send_configure_change();// no reconfigure, just recheck all functions + return 1; } BlendProgramEdit::BlendProgramEdit (BlendProgram *plugin, @@ -614,7 +615,11 @@ int BlendProgramToCurdir::handle_event() if (spath) file_box->fs->extract_name (fname, spath); // cut name from dir if (fname[0]) file_box->fs->join_names (path, dir, fname); - else strcpy (path, dir); // substitute old entered dir with project dir + else // substitute old entered dir with project dir + { + strcpy (path, dir); + strcat (path, "/"); + } // Not exactly sure what operations on FileBox are really important file_box->fs->change_dir (dir); // force it to recognize the new dir @@ -676,7 +681,11 @@ int BlendProgramToUsrlib::handle_event() const char *spath = file_box->get_submitted_path();// get name entered so far if (spath) file_box->fs->extract_name (fname, spath); // cut name from dir if (fname[0]) file_box->fs->join_names (path, dir, fname); - else strcpy (path, dir); // substitute old entered dir with user libdir + else // substitute old entered dir with user libdir + { + strcpy (path, dir); + strcat (path, "/"); + } // Reinitialize FileBox with the modified path file_box->fs->change_dir (dir); @@ -712,7 +721,11 @@ int BlendProgramToSyslib::handle_event() const char *spath = file_box->get_submitted_path();// get name entered so far if (spath) file_box->fs->extract_name (fname, spath); // cut name from dir if (fname[0]) file_box->fs->join_names (path, dir, fname); - else strcpy (path, dir); // substitute that old dir with system libdir + else // substitute that old dir with system libdir + { + strcpy (path, dir); + strcat (path, "/"); + } // Reinitialize FileBox with the modified path file_box->fs->change_dir (dir); -- 2.26.2