#BUGFIX by cg expecco_19_2_0 expecco_19_2_0_43 expecco_19_2_0_44
authorClaus Gittinger <cg@exept.de>
Wed, 18 Dec 2019 23:17:18 +0100
changeset 19376 6f7e2ad3bf76
parent 19375 cc84d2db5f7c
child 19377 1e0b933978f6
#BUGFIX by cg class: AbstractFileBrowser changed: #fileFileInPackage endless loop
AbstractFileBrowser.st
--- a/AbstractFileBrowser.st	Wed Dec 18 22:00:10 2019 +0100
+++ b/AbstractFileBrowser.st	Wed Dec 18 23:17:18 2019 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 2002 by eXept Software AG
               All Rights Reserved
@@ -3008,7 +3006,7 @@
                                     "/ are perfect here, but usually not available in the font
                                     "/ and we have currently no way of knowing if they are...
                                     "/ (could let the font draw into a bitmap and check if there is something...)
-                                    "/ For now, write a dot.·
+                                    "/ For now, write a dot.·
                                     "/ charPrinted := (Character value:(byte + 16r2400))
                                 ].
                             ].
@@ -7576,7 +7574,7 @@
     [ (dir / 'stx') = top ] whileFalse:[
         path := dir baseName , '/' , path.
         dir := dir directory.
-        dir isNil ifTrue:[
+        (dir isNil or:[dir isRootDirectory]) ifTrue:[
             Dialog warn:'Could not find a path from "stx" to the current directory.'.
             "/ should ask the user for a packageID and proceed...
             ^  self.
@@ -9141,7 +9139,7 @@
             ] ifFalse:[sig == HaltInterrupt ifTrue:[ |sender|
                 label := msg := 'Breakpoint/Halt in fileIn'.
                 sender := ex suspendedContext.
-                msg := msg , ('\\in %1 » %2' bindWith:(sender receiver class name) with:(sender sender selector))
+                msg := msg , ('\\in %1 » %2' bindWith:(sender receiver class name) with:(sender sender selector))
             ] ifFalse:[
                 label := 'Error in fileIn'.
                 msg := 'error in fileIn: %1'