diff options
author | fvogel <fvogelnew1@free.fr> | 2023-05-13 08:19:53 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-05-13 08:19:53 (GMT) |
commit | 4f73e52f91e885e7b4d5b38c4130b96965531cc0 (patch) | |
tree | a87842ba0ac96c424c14e0ff195286e05537d2ae /library/choosedir.tcl | |
parent | 9fd59f36dfce24d68e74ac61ac314929bd95de96 (diff) | |
parent | dee111f9330ed5ad6229e8a95ca03f25239b6c9a (diff) | |
download | tk-4f73e52f91e885e7b4d5b38c4130b96965531cc0.zip tk-4f73e52f91e885e7b4d5b38c4130b96965531cc0.tar.gz tk-4f73e52f91e885e7b4d5b38c4130b96965531cc0.tar.bz2 |
Fix [3414695fff]: tk_getOpenFile, tk_getSaveFile, tk_chooseDir: error when parent destroyed first.
Diffstat (limited to 'library/choosedir.tcl')
-rw-r--r-- | library/choosedir.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/choosedir.tcl b/library/choosedir.tcl index 6b4f15e..c583215 100644 --- a/library/choosedir.tcl +++ b/library/choosedir.tcl @@ -118,7 +118,9 @@ proc ::tk::dialog::file::chooseDir:: {args} { foreach trace [trace info variable data(selectPath)] { trace remove variable data(selectPath) [lindex $trace 0] [lindex $trace 1] } - $data(dirMenuBtn) configure -textvariable {} + if {[winfo exists $data(dirMenuBtn)]} { + $data(dirMenuBtn) configure -textvariable {} + } # Return value to user # |