Skip to content

Commit d62807a

Browse files
committed
fix: crash on macOS, due to running Connection.ShowWarnings directly in the TQueryThread
Refs #2425
1 parent 8d48099 commit d62807a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

source/apphelpers.pas

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3144,7 +3144,6 @@ procedure TQueryThread.Execute;
31443144
end;
31453145
FConnection.SetLockedByThread(nil);
31463146
Synchronize(AfterQuery);
3147-
FConnection.ShowWarnings;
31483147
// Check if FAborted is set by the main thread, to avoid proceeding the loop in case
31493148
// FStopOnErrors is set to false
31503149
if FAborted or ErrorAborted then

source/main.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3332,6 +3332,7 @@ procedure TMainForm.AfterQueryExecution(Thread: TQueryThread);
33323332
Tab.tabsetQuery.OnChange(Tab.tabsetQuery);
33333333
end;
33343334
end;
3335+
Thread.Connection.ShowWarnings;
33353336
ShowStatusMsg;
33363337
end;
33373338

0 commit comments

Comments
 (0)