diff options
author | ericm <ericm> | 2000-08-29 20:17:11 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-08-29 20:17:11 (GMT) |
commit | 89f7482bc6e4f71c55c9feff9bb78d8340375238 (patch) | |
tree | 5886466367467cf970bde6099a37937f487f2eb6 /library | |
parent | ef85986035437b6d6da8bf171ad32c651eb0a577 (diff) | |
download | tk-89f7482bc6e4f71c55c9feff9bb78d8340375238.zip tk-89f7482bc6e4f71c55c9feff9bb78d8340375238.tar.gz tk-89f7482bc6e4f71c55c9feff9bb78d8340375238.tar.bz2 |
* library/tkfbox.tcl (::tk::dialog::file::Update): Corrected
handling of multi-pattern filters (eg, "* *.*"), which was broken
by the getOpenFile performance patches applied earlier.
Diffstat (limited to 'library')
-rw-r--r-- | library/tkfbox.tcl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl index 7044af0..ab802f8 100644 --- a/library/tkfbox.tcl +++ b/library/tkfbox.tcl @@ -11,7 +11,7 @@ # files by clicking on the file icons or by entering a filename # in the "Filename:" entry. # -# RCS: @(#) $Id: tkfbox.tcl,v 1.22 2000/07/19 00:20:02 ericm Exp $ +# RCS: @(#) $Id: tkfbox.tcl,v 1.23 2000/08/29 20:17:12 ericm Exp $ # # Copyright (c) 1994-1998 Sun Microsystems, Inc. # @@ -1261,8 +1261,11 @@ rSASvJTGhnhcV3EJlo3kh53ltF5nAhQAOw==}] } else { set files {} foreach f $completeFileList { - if { [string match $data(filter) $f] } { - lappend files $f + foreach pat $data(filter) { + if { [string match $pat $f] } { + lappend files $f + break + } } } } |