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;
|
LogIt: Boolean;
|
||||||
LogItem: TDBLogItem;
|
LogItem: TDBLogItem;
|
||||||
begin
|
begin
|
||||||
|
OldSettingsPath := AppSettings.SessionPath;
|
||||||
LogItem := TDBLogItem.Create;
|
LogItem := TDBLogItem.Create;
|
||||||
LogItem.Category := Category;
|
LogItem.Category := Category;
|
||||||
if AppSettings.ReadBool(asLogTimestamp) then
|
if AppSettings.ReadBool(asLogTimestamp) then
|
||||||
@ -5485,8 +5486,6 @@ begin
|
|||||||
if csDestroying in ComponentState then
|
if csDestroying in ComponentState then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
OldSettingsPath := AppSettings.SessionPath;
|
|
||||||
|
|
||||||
for LogItem in PostponedLogItems do begin
|
for LogItem in PostponedLogItems do begin
|
||||||
|
|
||||||
// Log only wanted events
|
// Log only wanted events
|
||||||
|
Reference in New Issue
Block a user