mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix a theoretical access violation for servers with 0 databases. Could potentially fix bug #1844815 .
This commit is contained in:
@ -209,7 +209,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if comboSelectDatabase.ItemIndex = -1 then
|
// Select first database if at least one is available.
|
||||||
|
if (comboSelectDatabase.ItemIndex = -1) and (comboSelectDatabase.Items.Count>0) then
|
||||||
comboSelectDatabase.ItemIndex := 0;
|
comboSelectDatabase.ItemIndex := 0;
|
||||||
|
|
||||||
comboSelectDatabaseChange(self);
|
comboSelectDatabaseChange(self);
|
||||||
|
Reference in New Issue
Block a user