summaryrefslogtreecommitdiffstats
path: root/library/choosedir.tcl
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-05-13 08:19:53 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-05-13 08:19:53 (GMT)
commit4f73e52f91e885e7b4d5b38c4130b96965531cc0 (patch)
treea87842ba0ac96c424c14e0ff195286e05537d2ae /library/choosedir.tcl
parent9fd59f36dfce24d68e74ac61ac314929bd95de96 (diff)
parentdee111f9330ed5ad6229e8a95ca03f25239b6c9a (diff)
downloadtk-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.tcl4
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
#