mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Silence a harmless access violation in ApplicationDeActivate, triggered by changing the VCL style
This commit is contained in:
@ -13654,7 +13654,13 @@ begin
|
||||
// Prevent completion window from showing up after Alt-Tab. See issue #2640
|
||||
// and issue #3342
|
||||
// Does not work for some reason in TApplicationEvents.OnDeactivate
|
||||
SynCompletionProposal.Form.Enabled := False;
|
||||
// Triggers an EAccessViolation when changing some VCL styles
|
||||
try
|
||||
SynCompletionProposal.Form.Enabled := False;
|
||||
except
|
||||
on E:EAccessViolation do
|
||||
LogSQL(E.Message, lcError);
|
||||
end;
|
||||
// Gets activated again in SynCompletionProposalExecute
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user