mirror of https://gitlab.com/basile.b/dexed.git
more related to 9cca5e1b12
TWritableLfmTextComponent.readerError does not coever all the error kinds (for example error in conversion from text to bin stream)
This commit is contained in:
parent
55671cf9e6
commit
10cdbcd912
|
@ -317,6 +317,7 @@
|
|||
<Unit34>
|
||||
<Filename Value="..\src\ce_writablecomponent.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<UnitName Value="ce_writableComponent"/>
|
||||
</Unit34>
|
||||
<Unit35>
|
||||
<Filename Value="..\src\ce_sharedres.pas"/>
|
||||
|
|
|
@ -107,21 +107,15 @@ begin
|
|||
end;
|
||||
|
||||
procedure TCustomWritableComponent.loadFromFile(const aFilename: string);
|
||||
var
|
||||
err: boolean;
|
||||
begin
|
||||
err := false;
|
||||
fHasLoaded := false;
|
||||
fHasLoaded := true;
|
||||
beforeLoad;
|
||||
setFilename(aFilename);
|
||||
try
|
||||
customLoadFromFile(aFilename);
|
||||
except
|
||||
err := true;
|
||||
fHasLoaded := false;
|
||||
end;
|
||||
if not err then
|
||||
fHasLoaded := true;
|
||||
afterLoad;
|
||||
end;
|
||||
{$ENDREGION}
|
||||
|
|
Loading…
Reference in New Issue