checkin from browser
authorClaus Gittinger <cg@exept.de>
Tue, 12 Jun 2001 14:50:47 +0200
changeset 3026 3fb47b4a366c
parent 3025 a1d9d7b0d0b3
child 3027 81a76b3a519c
checkin from browser
FileBrowser.st
--- a/FileBrowser.st	Tue Jun 12 14:19:54 2001 +0200
+++ b/FileBrowser.st	Tue Jun 12 14:50:47 2001 +0200
@@ -6414,7 +6414,7 @@
     "show/insert contents of fileName in subView"
 
     |path buffer s n i ok convert text msg eol guess action enc 
-     fontsEncoding pref failWarning f|
+     fontsEncoding pref failWarning f answer|
 
     fileName asFilename isAbsolute ifFalse:[
         path := currentDirectory filenameFor:fileName.
@@ -6456,8 +6456,10 @@
         viaDoubleClick ifTrue:[
             (self binaryFileAction:fileName) ifTrue:[^ self].
         ].
-        (self confirm:(resources string:'''%1'' seems to be a binary file (or unsupported format) - show anyway ?' with:fileName))
-        ifFalse:[^ self]
+        "/ answer := self confirmWithCancel:(resources string:'''%1'' seems to be a binary file (or unsupported format) - show anyway ?' with:fileName).
+        answer := self confirm:(resources string:'''%1'' seems to be a binary file (or unsupported format) - show anyway ?' with:fileName).
+        answer == nil ifTrue:[ AbortSignal raise].
+        answer ifFalse:[^ self]
     ] ifFalse:[
         viaDoubleClick ifTrue:[
             (self nonBinaryFileAction:fileName) ifTrue:[^ self].
@@ -7276,5 +7278,5 @@
 !FileBrowser class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/FileBrowser.st,v 1.407 2001-06-12 12:19:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/FileBrowser.st,v 1.408 2001-06-12 12:50:47 cg Exp $'
 ! !