mirror of https://gitlab.com/basile.b/dexed.git
prevent calling dastworx on closing a page
This commit is contained in:
parent
d3ec00991e
commit
3ad97b3dc2
|
@ -573,7 +573,8 @@ procedure TSymbolListWidget.docClosing(document: TDexedMemo);
|
||||||
begin
|
begin
|
||||||
if fDoc <> document then
|
if fDoc <> document then
|
||||||
exit;
|
exit;
|
||||||
|
if fToolProc.Running then
|
||||||
|
fToolProc.Terminate(0);
|
||||||
fDoc := nil;
|
fDoc := nil;
|
||||||
clearTree;
|
clearTree;
|
||||||
updateVisibleCat;
|
updateVisibleCat;
|
||||||
|
|
|
@ -347,7 +347,8 @@ begin
|
||||||
exit;
|
exit;
|
||||||
fDoc := nil;
|
fDoc := nil;
|
||||||
if Visible and fAutoRefresh then
|
if Visible and fAutoRefresh then
|
||||||
callToolProcess;
|
clearTodoList;
|
||||||
|
killToolProcess();
|
||||||
end;
|
end;
|
||||||
{$ENDREGION}
|
{$ENDREGION}
|
||||||
|
|
||||||
|
@ -399,7 +400,7 @@ begin
|
||||||
exit(tcFile);
|
exit(tcFile);
|
||||||
if (fProj <> nil) and fDoc.isNil then
|
if (fProj <> nil) and fDoc.isNil then
|
||||||
exit(tcProject);
|
exit(tcProject);
|
||||||
//
|
|
||||||
if fProj.isSource(fDoc.fileName) then
|
if fProj.isSource(fDoc.fileName) then
|
||||||
exit(tcProject)
|
exit(tcProject)
|
||||||
else
|
else
|
||||||
|
@ -410,7 +411,7 @@ procedure TTodoListWidget.killToolProcess;
|
||||||
begin
|
begin
|
||||||
if fToolProc.isNil then
|
if fToolProc.isNil then
|
||||||
exit;
|
exit;
|
||||||
//
|
|
||||||
fToolProc.Terminate(0);
|
fToolProc.Terminate(0);
|
||||||
fToolProc.Free;
|
fToolProc.Free;
|
||||||
fToolProc := nil;
|
fToolProc := nil;
|
||||||
|
|
Loading…
Reference in New Issue