summaryrefslogtreecommitdiffstats
path: root/library/tkfbox.tcl
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-08-29 20:17:11 (GMT)
committerericm <ericm@noemail.net>2000-08-29 20:17:11 (GMT)
commitef12f280ea970f2e2c635718a866d965bc7d5bbf (patch)
tree5886466367467cf970bde6099a37937f487f2eb6 /library/tkfbox.tcl
parentb614ebd8dea118760cb128f49b36574913c5f12f (diff)
downloadtk-ef12f280ea970f2e2c635718a866d965bc7d5bbf.zip
tk-ef12f280ea970f2e2c635718a866d965bc7d5bbf.tar.gz
tk-ef12f280ea970f2e2c635718a866d965bc7d5bbf.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. FossilOrigin-Name: b4a0dd53a516bea8b31854c15e34c1db7d6e51fb
Diffstat (limited to 'library/tkfbox.tcl')
-rw-r--r--library/tkfbox.tcl9
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
+ }
}
}
}