--- a/FNmEdtFld.st Fri Jul 02 11:53:18 1999 +0200
+++ b/FNmEdtFld.st Sat Jul 03 15:58:11 1999 +0200
@@ -69,10 +69,12 @@
n := someText.
directoriesOnly ifFalse:[
- f := someText asFilename.
- (f exists and:[f isDirectory]) ifTrue:[
- (f name endsWith:f separator) ifFalse:[
- n := f name copyWith:f separator
+ someText notNil ifTrue:[
+ f := someText asFilename.
+ (f exists and:[f isDirectory]) ifTrue:[
+ (f name endsWith:f separator) ifFalse:[
+ n := f name copyWith:f separator
+ ]
]
].
].
@@ -218,5 +220,5 @@
!FilenameEditField class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg2/Attic/FNmEdtFld.st,v 1.26 1999-06-28 08:41:22 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/Attic/FNmEdtFld.st,v 1.27 1999-07-03 13:58:11 cg Exp $'
! !
--- a/FilenameEditField.st Fri Jul 02 11:53:18 1999 +0200
+++ b/FilenameEditField.st Sat Jul 03 15:58:11 1999 +0200
@@ -69,10 +69,12 @@
n := someText.
directoriesOnly ifFalse:[
- f := someText asFilename.
- (f exists and:[f isDirectory]) ifTrue:[
- (f name endsWith:f separator) ifFalse:[
- n := f name copyWith:f separator
+ someText notNil ifTrue:[
+ f := someText asFilename.
+ (f exists and:[f isDirectory]) ifTrue:[
+ (f name endsWith:f separator) ifFalse:[
+ n := f name copyWith:f separator
+ ]
]
].
].
@@ -218,5 +220,5 @@
!FilenameEditField class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libwidg2/FilenameEditField.st,v 1.26 1999-06-28 08:41:22 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libwidg2/FilenameEditField.st,v 1.27 1999-07-03 13:58:11 cg Exp $'
! !