mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #932: fix crash with new color setting when switching from query tab to data tab
This commit is contained in:
@@ -6416,11 +6416,13 @@ begin
|
||||
actCodeFoldingStartRegion.Enabled := InQueryTab;
|
||||
actCodeFoldingEndRegion.Enabled := InQueryTab;
|
||||
actCodeFoldingFoldSelection.Enabled := HasSelection;
|
||||
if HasConnection and (Conn.Parameters.SessionColor <> clNone) then begin
|
||||
Tab.Memo.Gutter.Color := Conn.Parameters.SessionColor;
|
||||
end
|
||||
else begin
|
||||
Tab.Memo.Gutter.Color := clBtnFace;
|
||||
if InQueryTab then begin
|
||||
if HasConnection and (Conn.Parameters.SessionColor <> clNone) then begin
|
||||
Tab.Memo.Gutter.Color := Conn.Parameters.SessionColor;
|
||||
end
|
||||
else begin
|
||||
Tab.Memo.Gutter.Color := clBtnFace;
|
||||
end;
|
||||
end;
|
||||
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user