summaryrefslogtreecommitdiffstats
path: root/library/tkfbox.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-02-19 23:53:36 (GMT)
committerhobbs <hobbs>2007-02-19 23:53:36 (GMT)
commit05f0fe856f170b9d7a36c957cf6e4a1920d0bb02 (patch)
tree40242b7709ca587247b82d10e2fa14aa3e83593d /library/tkfbox.tcl
parent4da034ee1780a1cf16e7296afd1ba9a84464457f (diff)
downloadtk-05f0fe856f170b9d7a36c957cf6e4a1920d0bb02.zip
tk-05f0fe856f170b9d7a36c957cf6e4a1920d0bb02.tar.gz
tk-05f0fe856f170b9d7a36c957cf6e4a1920d0bb02.tar.bz2
* library/tkfbox.tcl (::tk::IconList_Goto): avoid goto issues in
empty dirs. [Bug 1662959]
Diffstat (limited to 'library/tkfbox.tcl')
-rw-r--r--library/tkfbox.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl
index ec37d55..e32dbe7 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.38.2.12 2006/07/07 00:38:47 hobbs Exp $
+# RCS: @(#) $Id: tkfbox.tcl,v 1.38.2.13 2007/02/19 23:53:36 hobbs Exp $
#
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
#
@@ -709,12 +709,12 @@ proc ::tk::IconList_KeyPress {w key} {
proc ::tk::IconList_Goto {w text} {
upvar ::tk::$w data
upvar ::tk::$w:textList textList
-
+
if {![info exists data(list)]} {
return
}
- if {$text eq ""} {
+ if {$text eq "" || $data(numItems) == 0} {
return
}