mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +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;
|
||||
|
||||
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;
|
||||
|
||||
comboSelectDatabaseChange(self);
|
||||
|
Reference in New Issue
Block a user