From d62807a2ceeec8170d356459630edd80847fec6f Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 9 Mar 2026 16:06:30 +0100 Subject: [PATCH] fix: crash on macOS, due to running Connection.ShowWarnings directly in the TQueryThread Refs #2425 --- source/apphelpers.pas | 1 - source/main.pas | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/source/apphelpers.pas b/source/apphelpers.pas index a6542e92..e2a728aa 100644 --- a/source/apphelpers.pas +++ b/source/apphelpers.pas @@ -3144,7 +3144,6 @@ begin end; FConnection.SetLockedByThread(nil); Synchronize(AfterQuery); - FConnection.ShowWarnings; // Check if FAborted is set by the main thread, to avoid proceeding the loop in case // FStopOnErrors is set to false if FAborted or ErrorAborted then diff --git a/source/main.pas b/source/main.pas index c94157f3..de2f7158 100644 --- a/source/main.pas +++ b/source/main.pas @@ -3332,6 +3332,7 @@ begin Tab.tabsetQuery.OnChange(Tab.tabsetQuery); end; end; + Thread.Connection.ShowWarnings; ShowStatusMsg; end;