oops - avoid endless loop when alking dir-hierarchy up.
authorClaus Gittinger <cg@exept.de>
Fri, 25 Sep 1998 17:56:19 +0200
changeset 1005 0b2b698bc4f3
parent 1004 b7bfaa2d6ecd
child 1006 bc36367c17b6
oops - avoid endless loop when alking dir-hierarchy up.
FileSelectionBrowser.st
--- a/FileSelectionBrowser.st	Fri Sep 25 16:59:27 1998 +0200
+++ b/FileSelectionBrowser.st	Fri Sep 25 17:56:19 1998 +0200
@@ -358,7 +358,10 @@
         "/ search backward from aFilename for the last readable dir.
         root := f.
         parent := root directory.
-        [parent exists and:[parent isDirectory and:[parent isReadable]]]
+        [parent ~= root
+         and:[parent exists 
+         and:[parent isDirectory 
+         and:[parent isReadable]]]]
         whileTrue:[
             root := parent.
             parent := root directory.