Fix crash when there is no ActiveConnection. See http://www.heidisql.com/forum.php?t=7749

This commit is contained in:
Ansgar Becker
2011-02-09 09:27:38 +00:00
parent 8d9539e10f
commit d539284477

View File

@ -1068,7 +1068,7 @@ begin
ImageIndex := -1;
case Panel.Index of
2: ImageIndex := 149;
3: begin
3: if ActiveConnection <> nil then begin
if opSSL in ActiveConnection.Parameters.Options then
ImageIndex := 144 // Lock
else