Mantis - tweak
Viewing Issue Advanced Details
1149 Any tweak always 05-11-05 01:02 05-11-05 03:31
starbow  
 
normal  
resolved  
fixed  
none    
none  
0001149: CFileDialogSave>>acceptFile: returns nil.
result of acceptFile: is tested as a boolean in CFileDialog>>accept, and generates an error when the result is nil.

Could be fixed like so:

acceptFile: newName
   "Accept a new file or ask user if it is okay to overwrite"
   | result |
   fileList do:[:entry| entry name = newName ifTrue:[
       result := CDialog confirm: newName printString,' already exists.\Do you want to overwrite it?' withCRs centerAt: self globalBounds center.
       result ifNil: [ result := false. ].
       ^result.
   ]].
   ^true

Notes
(0001471)
andreas   
05-11-05 03:30   
Now fixed. Thanks for reporting.