diff options
author | hobbs <hobbs> | 2007-02-19 23:53:36 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-02-19 23:53:36 (GMT) |
commit | 3c2766cc98d796c396f708fcb95e83c7c6e630fd (patch) | |
tree | 40242b7709ca587247b82d10e2fa14aa3e83593d /library | |
parent | 4c3be02c309d7d55fd5ef0c7c6c4e2d462c0d8df (diff) | |
download | tk-3c2766cc98d796c396f708fcb95e83c7c6e630fd.zip tk-3c2766cc98d796c396f708fcb95e83c7c6e630fd.tar.gz tk-3c2766cc98d796c396f708fcb95e83c7c6e630fd.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 } |