mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Fix crash due to reset AppSettings.SessionPath through LogSQL()
This commit is contained in:
@ -5471,6 +5471,7 @@ var
|
||||
LogIt: Boolean;
|
||||
LogItem: TDBLogItem;
|
||||
begin
|
||||
OldSettingsPath := AppSettings.SessionPath;
|
||||
LogItem := TDBLogItem.Create;
|
||||
LogItem.Category := Category;
|
||||
if AppSettings.ReadBool(asLogTimestamp) then
|
||||
@ -5485,8 +5486,6 @@ begin
|
||||
if csDestroying in ComponentState then
|
||||
Exit;
|
||||
|
||||
OldSettingsPath := AppSettings.SessionPath;
|
||||
|
||||
for LogItem in PostponedLogItems do begin
|
||||
|
||||
// Log only wanted events
|
||||
|
Reference in New Issue
Block a user