diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2015-05-26 12:35:23 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2015-05-26 12:35:23 (GMT) |
commit | 4cf3cb0dcb352b028b6d412ba64884135bcdd1f8 (patch) | |
tree | 1268c3aa235addd1f83f1a25574b58665610be87 | |
parent | 5a69a6ae109ece6ba215d24e3b0d0f1c8671a1dd (diff) | |
download | tk-4cf3cb0dcb352b028b6d412ba64884135bcdd1f8.zip tk-4cf3cb0dcb352b028b6d412ba64884135bcdd1f8.tar.gz tk-4cf3cb0dcb352b028b6d412ba64884135bcdd1f8.tar.bz2 |
Fix [1641721]: tk_getOpenFile shows symlinks to directories twice.
-rw-r--r-- | library/tkfbox.tcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl index e145805..fd0f6d7 100644 --- a/library/tkfbox.tcl +++ b/library/tkfbox.tcl @@ -1896,6 +1896,10 @@ proc ::tk::dialog::file::GlobFiltered {dir type {overrideFilter 0}} { if {$f eq "." || $f eq ".."} { continue } + # See ticket [1641721], $f might be a link pointing to a dir + if {$type != "d" && [file isdir [file join $dir $f]]} { + continue + } lappend result $f } } |