TSaveDialog: ofNoReadOnlyReturn fails for desktop (w32)
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Executing a TSaveDialog with ofNoReadOnlyReturn fails if the user selects the desktop.
The user has write access to it' desktop. Therefore specifying a none existing file on the desktop, should be ok.
Yet an error is given, that the file can not be written.
Additional information:
procedure TForm1.Button1Click(Sender: TObject);
var
SaveDialog: TSaveDialog;
begin
SaveDialog:=TSaveDialog.Create(nil);
try
SaveDialog.FileName:='test.txt';
SaveDialog.Options := [ofNoReadOnlyReturn];
SaveDialog.Execute;
finally
SaveDialog.Free;
end;
end;
Mantis conversion info:
- Mantis ID: 22589
- Version: 1.1 (SVN)
- Fixed in revision: r41832 (#77686a4d)