mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Refreshing datagrid result while connection is cut triggers SelectedTableColumns to reset implicitly in ConnectionReady > DBTreeFocusChanged > ParseSelectedTableStructure. Add an explicit Connection.Ping(true) before firing any query in DatagridBeforePaint, and merge code from ParseSelectedTableStructure into DBTreeFocusChanges. Fixes issue #2644.
This commit is contained in:
@ -399,7 +399,6 @@ begin
|
||||
tabALTERcode.TabVisible := DBObject.Name <> '';
|
||||
Mainform.UpdateEditorTab;
|
||||
Mainform.RefreshTree(DBObject);
|
||||
Mainform.ParseSelectedTableStructure;
|
||||
Mainform.RefreshHelperNode(HELPERNODE_COLUMNS);
|
||||
ResetModificationFlags;
|
||||
AlterCodeValid := False;
|
||||
|
Reference in New Issue
Block a user