mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Fix needed after change in rev 961: createtable-dialog refreshed the cached table dataset twice. Set ActiveDatabase early, so we only need to call MenuRefreshClick instead of RefreshDbTableList + PopulateTreeTableList.
This commit is contained in:
@ -265,10 +265,9 @@ begin
|
||||
|
||||
// Execute CREATE statement and reload tablesList
|
||||
try
|
||||
Mainform.ChildWin.ExecUpdateQuery( createQuery );
|
||||
Mainform.ChildWin.RefreshDbTableList( DBComboBox.Text );
|
||||
Mainform.Childwin.ActiveDatabase := DBComboBox.Text;
|
||||
Mainform.Childwin.PopulateTreeTableList( nil, True );
|
||||
Mainform.ChildWin.ExecUpdateQuery( createQuery );
|
||||
Mainform.ChildWin.MenuRefreshClick(sender);
|
||||
Mainform.ChildWin.SelectedTable := EditTablename.Text;
|
||||
Mainform.ChildWin.ShowTable(EditTablename.Text);
|
||||
Close;
|
||||
|
Reference in New Issue
Block a user