mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix another exception cause for issue #1462
This commit is contained in:
@@ -3052,7 +3052,7 @@ procedure TMainForm.LogSQL(Msg: WideString; Category: TMySQLLogCategory=lcInfo);
|
||||
var
|
||||
snip, IsSQL: Boolean;
|
||||
begin
|
||||
if Category = lcDebug then
|
||||
if (Category = lcDebug) or (csDestroying in ComponentState) then
|
||||
Exit;
|
||||
// Shorten very long messages
|
||||
snip := (prefLogSqlWidth > 0) and (Length(Msg) > prefLogSqlWidth);
|
||||
|
||||
Reference in New Issue
Block a user