Credit SGE - minor change for immediate recompilation on Refresh +
authorGood Guy <good1.2guy@gmail.com>
Thu, 6 Mar 2025 01:30:31 +0000 (18:30 -0700)
committerGood Guy <good1.2guy@gmail.com>
Thu, 6 Mar 2025 01:30:31 +0000 (18:30 -0700)
cinelerra-5.1/plugins/blendalgebra/blendalgebra.C
cinelerra-5.1/plugins/blendprogram/blendprogram.C

index 7d91f53519ca858622d6e8135d4b456fa85c1ee5..e1c8220007dd0cc8f4d997430caa79b6c2907daa 100644 (file)
@@ -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);
index ad2c541793d8c7e8dca91b33b42c0fcaf9843d29..70f27bc3836a3807ab808d2b8f3d82a337c300f0 100644 (file)
@@ -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);