summaryrefslogtreecommitdiffstats
path: root/library/choosedir.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-09-17 14:12:18 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-09-17 14:12:18 (GMT)
commitd389b7c614bed2adeef2c44844cb67d6bc563b21 (patch)
treebb02743e7271506bcb98a0712fc25eb2d2b11cc5 /library/choosedir.tcl
parentd8142ec988da069be185faa5b25c0cf258a7e452 (diff)
downloadtk-d389b7c614bed2adeef2c44844cb67d6bc563b21.zip
tk-d389b7c614bed2adeef2c44844cb67d6bc563b21.tar.gz
tk-d389b7c614bed2adeef2c44844cb67d6bc563b21.tar.bz2
Fixed string/list confusion in directory browser, and a typo in ChangeLog
Diffstat (limited to 'library/choosedir.tcl')
-rw-r--r--library/choosedir.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/library/choosedir.tcl b/library/choosedir.tcl
index ee4dfb1..8f1df99 100644
--- a/library/choosedir.tcl
+++ b/library/choosedir.tcl
@@ -5,7 +5,7 @@
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: choosedir.tcl,v 1.10 2001/08/01 16:21:11 dgp Exp $
+# RCS: @(#) $Id: choosedir.tcl,v 1.11 2001/09/17 14:12:18 dkf Exp $
# Make sure the tk::dialog namespace, in which all dialogs should live, exists
namespace eval ::tk::dialog {}
@@ -222,10 +222,11 @@ proc ::tk::dialog::file::chooseDir::DblClick {w} {
upvar ::tk::dialog::file::[winfo name $w] data
set selection [tk::IconList_Curselection $data(icons)]
if { [llength $selection] != 0 } {
- set text [tk::IconList_Get $data(icons) [lindex $selection 0]]
+ set filenameFragment \
+ [tk::IconList_Get $data(icons) [lindex $selection 0]]
set file $data(selectPath)
if {[file isdirectory $file]} {
- ::tk::dialog::file::ListInvoke $w $text
+ ::tk::dialog::file::ListInvoke $w [list $filenameFragment]
return
}
}