Artifact
08abba08bccdc4e947048e7e9e7f7126e2355123:
Attachment "ftypebug.patch" to
ticket [3588460f]
added by
auriocus
2012-11-19 16:14:54.
--- tk8.6b3/library/tkfbox.tcl 2012-09-13 21:57:38.000000000 +0200
+++ tcl86/lib/tk8.6/tkfbox.tcl 2012-11-19 09:38:50.000000000 +0100
@@ -310,6 +310,7 @@
# 5. Parse the -filetypes option
#
+ set data(origfiletypes) $data(-filetypes)
set data(-filetypes) [::tk::FDGetFileTypes $data(-filetypes)]
if {![winfo exists $data(-parent)]} {
@@ -1119,7 +1120,7 @@
&& [info exists data(filterType)] && $data(filterType) ne ""
} then {
upvar #0 $data(-typevariable) typeVariable
- set typeVariable [lindex $data(filterType) 0]
+ set typeVariable [lindex $data(origfiletypes) [lsearch -exact $data(-filetypes) $data(filterType)] 0]
}
}
bind $data(okBtn) <Destroy> {}