diff options
author | hobbs <hobbs> | 2007-02-19 23:53:36 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-02-19 23:53:36 (GMT) |
commit | 05f0fe856f170b9d7a36c957cf6e4a1920d0bb02 (patch) | |
tree | 40242b7709ca587247b82d10e2fa14aa3e83593d /library | |
parent | 4da034ee1780a1cf16e7296afd1ba9a84464457f (diff) | |
download | tk-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')
-rw-r--r-- | library/tkfbox.tcl | 6 |
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 } |