Skip to content

Commit

Permalink
set the initialfile when doing "save as"
Browse files Browse the repository at this point in the history
Closes: #746
  • Loading branch information
umlaeute committed Sep 19, 2019
1 parent 83015dc commit 6ef7d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tcl/pdtk_canvas.tcl
Expand Up @@ -157,6 +157,7 @@ proc pdtk_canvas_raise {mytoplevel} {
proc pdtk_canvas_saveas {mytoplevel initialfile initialdir destroyflag} {
if { ! [file isdirectory $initialdir]} {set initialdir $::filenewdir}
set filename [tk_getSaveFile -initialdir $initialdir \
-initialfile $initialfile \
-defaultextension .pd -filetypes $::filetypes]
if {$filename eq ""} return; # they clicked cancel

Expand Down

0 comments on commit 6ef7d18

Please sign in to comment.