Skip to content

Commit

Permalink
"save as" no longer sends an initial file name to the tk_getSaveFile
Browse files Browse the repository at this point in the history
function - this seems to have stopped working in tcl 8.5 on Macintosh (the
initialfile gets incorporated into the initialdir and the dialog gets badly
confused.)  Workaround is simply not to supply it.
  • Loading branch information
millerpuckette committed Aug 13, 2017
1 parent 0e84832 commit b6b19c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcl/pdtk_canvas.tcl
Expand Up @@ -126,7 +126,7 @@ proc pdtk_canvas_raise {mytoplevel} {

proc pdtk_canvas_saveas {name initialfile initialdir destroyflag} {
if { ! [file isdirectory $initialdir]} {set initialdir $::filenewdir}
set filename [tk_getSaveFile -initialfile $initialfile -initialdir $initialdir \
set filename [tk_getSaveFile -initialdir $initialdir \
-defaultextension .pd -filetypes $::filetypes]
if {$filename eq ""} return; # they clicked cancel

Expand Down

0 comments on commit b6b19c7

Please sign in to comment.