Skip to content

Commit 222a386

Browse files
committed
fix: user queries not showing up in log panel
Refs #2313
1 parent 0257867 commit 222a386

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/apphelpers.pas

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,13 +3296,14 @@ procedure TQueryThread.LogFromThread(Msg: String; Category: TDBLogCategory);
32963296
begin
32973297
FLogMsg := Msg;
32983298
FLogCategory := Category;
3299-
Queue(Log);
3299+
Synchronize(Log);
33003300
end;
33013301

33023302

33033303
procedure TQueryThread.Log;
33043304
begin
3305-
FConnection.OnLog(FLogMsg, FLogCategory, FConnection);
3305+
if Assigned(FConnection.OnLog) then
3306+
FConnection.OnLog(FLogMsg, FLogCategory, FConnection);
33063307
end;
33073308

33083309

0 commit comments

Comments
 (0)