From de9611c48d37dc29f0c06e2f04705c60d0c2b85f Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 19 Feb 2007 23:52:19 +0000 Subject: * library/tkfbox.tcl (::tk::IconList_Goto): avoid goto issues in empty dirs. [Bug 1662959] --- library/tkfbox.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl index 60c8ab2..a9228e1 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.58 2006/07/07 00:39:42 hobbs Exp $ +# RCS: @(#) $Id: tkfbox.tcl,v 1.59 2007/02/19 23:52:19 hobbs Exp $ # # Copyright (c) 1994-1998 Sun Microsystems, Inc. # @@ -733,7 +733,7 @@ proc ::tk::IconList_Goto {w text} { return } - if {$text eq ""} { + if {$text eq "" || $data(numItems) == 0} { return } -- cgit v0.12