Commit 68689bf3 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed bug where patches with relative paths and multiple patches did not open...

*fixed bug where patches with relative paths and multiple patches did not open properly within the existing instance of pd-l2ork
parent 0c18097c
......@@ -9388,8 +9388,15 @@ proc pdtk_check_unique {unique filenames} {
#puts stderr "pdtk_check_unique $unique $filenames"
global appname
if { $unique == 0 } {
#puts stderr "send pd-l2ork pdtk_open_files_via_unique $filenames"
set outcome [catch {send pd-l2ork pdtk_open_files_via_unique $filenames}]
foreach file $filenames {
cd [file dirname $file]
set dir [pwd]
set name [file tail $file]
#puts stderr "********DIR:$dir FILE:$name COMBINED:[file join $dir $name]"
lappend final_filenames [file join $dir $name]
}
#puts stderr "send pd-l2ork pdtk_open_files_via_unique $final_filenames"
set outcome [catch {send pd-l2ork pdtk_open_files_via_unique \{$final_filenames\}}]
#puts stderr "outcome = $outcome"
if { $outcome == 0 } {
menu_really_quit
......
......@@ -325,7 +325,7 @@ int sys_main(int argc, char **argv)
return(1);
}
}
sys_vgui("pdtk_check_unique %d %s\n", sys_unique,
sys_vgui("pdtk_check_unique %d {%s}\n", sys_unique,
(filenames ? filenames : "0"));
if (sys_externalschedlib)
return (sys_run_scheduler(sys_externalschedlibname,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment