mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
fix: crash on macOS, due to running Connection.ShowWarnings directly in the TQueryThread
Refs #2425
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3332,6 +3332,7 @@ begin
|
||||
Tab.tabsetQuery.OnChange(Tab.tabsetQuery);
|
||||
end;
|
||||
end;
|
||||
Thread.Connection.ShowWarnings;
|
||||
ShowStatusMsg;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user