mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Fix crash in SynMemoQueryStatusChange when resizing main window with no active query tab
This commit is contained in:
@ -6707,6 +6707,9 @@ procedure TMainForm.SynMemoQueryStatusChange(Sender: TObject; Changes:
|
|||||||
var
|
var
|
||||||
Edit: TSynMemo;
|
Edit: TSynMemo;
|
||||||
begin
|
begin
|
||||||
|
// Crashed with scTopLine and an non-set ActiveQueryTab while resizing main window, so limit to modifications
|
||||||
|
if not (scModified in Changes) then
|
||||||
|
Exit;
|
||||||
// Don't ask for saving empty contents. See issue #614
|
// Don't ask for saving empty contents. See issue #614
|
||||||
Edit := Sender as TSynMemo;
|
Edit := Sender as TSynMemo;
|
||||||
if Edit.GetTextLen = 0 then begin
|
if Edit.GetTextLen = 0 then begin
|
||||||
|
Reference in New Issue
Block a user