From 05f0fe856f170b9d7a36c957cf6e4a1920d0bb02 Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 19 Feb 2007 23:53:36 +0000 Subject: * library/tkfbox.tcl (::tk::IconList_Goto): avoid goto issues in empty dirs. [Bug 1662959] --- library/tkfbox.tcl | 6 +++--- 1 file 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 } -- cgit v0.12