Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001149 [tweak] Any tweak always 05-11-05 01:02 05-11-05 03:31
Reporter starbow View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved  
Summary 0001149: CFileDialogSave>>acceptFile: returns nil.
Description 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
Additional Information
Attached Files

- Relationships

- Notes
(0001471 - 32 - 32 - 32 - 32 - 32 - 32)
andreas
05-11-05 03:30

Now fixed. Thanks for reporting.
 

- Issue History
Date Modified Username Field Change
05-11-05 01:02 starbow New Issue
05-11-05 03:30 andreas Status new => resolved
05-11-05 03:30 andreas Resolution open => fixed
05-11-05 03:30 andreas Assigned To  => andreas
05-11-05 03:30 andreas Note Added: 0001471
05-11-05 03:31 andreas Assigned To andreas =>


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
36 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker