gui: Pass a filename to openFile as an argument rather than using the
currentFile global variable.
This commit is contained in:
parent
104e68a712
commit
51aba4b82c
2 changed files with 12 additions and 15 deletions
|
@ -229,7 +229,7 @@ bind . <Control-n> "fileNewDialogBox"
|
|||
bind . <Control-o> "fileOpenDialogBox"
|
||||
|
||||
.menubar.file add command -label "Reload" -underline 0 \
|
||||
-command { openFile }
|
||||
-command { openFile $currentFile }
|
||||
|
||||
.menubar.file add command -label Save -underline 0 \
|
||||
-accelerator "Ctrl+S" -command { fileSaveDialogBox "" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue