mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Try to fix situations when the database tab gets repainted with no active connection. Fixes issue #2417.
This commit is contained in:
@@ -7868,9 +7868,11 @@ begin
|
||||
vt := Sender as TVirtualStringTree;
|
||||
if vt.Tag = VTREE_LOADED then
|
||||
Exit;
|
||||
Conn := ActiveConnection;
|
||||
if Conn = nil then
|
||||
Exit;
|
||||
Screen.Cursor := crHourglass;
|
||||
vt.Clear;
|
||||
Conn := ActiveConnection;
|
||||
try
|
||||
if Conn.InformationSchemaObjects.IndexOf('SCHEMATA') > -1 then
|
||||
AllDatabasesDetails := Conn.GetResults('SELECT * FROM '+Conn.QuoteIdent(DBNAME_INFORMATION_SCHEMA)+'.'+Conn.QuoteIdent('SCHEMATA'));
|
||||
|
||||
Reference in New Issue
Block a user