mirror of https://gitlab.com/basile.b/dexed.git
fix error when dast not found
This commit is contained in:
parent
7e50d1ba77
commit
22b9b8d47a
|
@ -370,11 +370,14 @@ begin
|
||||||
fDefaultFontSize := 10;
|
fDefaultFontSize := 10;
|
||||||
SetDefaultCoeditKeystrokes(Self); // not called in inherited if owner = nil !
|
SetDefaultCoeditKeystrokes(Self); // not called in inherited if owner = nil !
|
||||||
//
|
//
|
||||||
|
if dastAvailable then
|
||||||
|
begin
|
||||||
fAst := newAST(self, @astScanned);
|
fAst := newAST(self, @astScanned);
|
||||||
fAstTimer := TIdleTimer.Create(self);
|
fAstTimer := TIdleTimer.Create(self);
|
||||||
fAstTimer.Interval:= 2000;
|
fAstTimer.Interval:= 2000;
|
||||||
fAstTimer.OnTimer:= @AstTimerEvent;
|
fAstTimer.OnTimer:= @AstTimerEvent;
|
||||||
fAstTimer.Enabled:=true;
|
fAstTimer.Enabled:=true;
|
||||||
|
end;
|
||||||
//
|
//
|
||||||
ShowHint := false;
|
ShowHint := false;
|
||||||
InitHintWins;
|
InitHintWins;
|
||||||
|
@ -452,6 +455,7 @@ begin
|
||||||
if fileExists(fTempFileName) then
|
if fileExists(fTempFileName) then
|
||||||
sysutils.DeleteFile(fTempFileName);
|
sysutils.DeleteFile(fTempFileName);
|
||||||
//
|
//
|
||||||
|
if dastAvailable then
|
||||||
deleteAst(fAst);
|
deleteAst(fAst);
|
||||||
//
|
//
|
||||||
inherited;
|
inherited;
|
||||||
|
|
Loading…
Reference in New Issue