Attachment "choosedir-2.patch" to
ticket [1550523f]
added by
nobody
2006-09-01 20:26:20.
--- choosedir.tcl.orig 2006-09-01 08:47:47.000003000 -0400
+++ choosedir.tcl 2006-09-01 08:51:36.000002000 -0400
@@ -212,27 +212,7 @@
return
}
set text [eval file join [file split [string trim $text]]]
- if { ![file exists $text] || ![file isdirectory $text] } {
- # Entry contains an invalid directory. If it's the same as the
- # last time they came through here, reset the saved value and end
- # the dialog. Otherwise, save the value (so we can do this test
- # next time).
- if { [string equal $text $data(previousEntryText)] } {
- set data(previousEntryText) ""
- ::tk::dialog::file::chooseDir::Done $w $text
- } else {
- set data(previousEntryText) $text
- }
- } else {
- # Entry contains a valid directory. If it is the same as the
- # current directory, end the dialog. Otherwise, change to that
- # directory.
- if { [string equal $text $data(selectPath)] } {
- ::tk::dialog::file::chooseDir::Done $w $text
- } else {
- set data(selectPath) $text
- }
- }
+ ::tk::dialog::file::chooseDir::Done $w $text
}
return
}