mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Catch exception when grid export file cannot be created. Fixes issue #2325.
This commit is contained in:
@ -662,7 +662,15 @@ begin
|
||||
end;
|
||||
StreamToClipboard(S, HTML, (ExportFormat=efHTML) and (HTML <> nil));
|
||||
end else begin
|
||||
S.SaveToFile(editFilename.Text);
|
||||
try
|
||||
S.SaveToFile(editFilename.Text);
|
||||
except
|
||||
on E:EFCreateError do begin
|
||||
// Keep form open if file cannot be created
|
||||
ModalResult := mrNone;
|
||||
ErrorDialog(E.Message);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
Mainform.ProgressBarStatus.Visible := False;
|
||||
|
Reference in New Issue
Block a user