mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 10:02:10 +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
|
// Execute CREATE statement and reload tablesList
|
||||||
try
|
try
|
||||||
Mainform.ChildWin.ExecUpdateQuery( createQuery );
|
|
||||||
Mainform.ChildWin.RefreshDbTableList( DBComboBox.Text );
|
|
||||||
Mainform.Childwin.ActiveDatabase := 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.SelectedTable := EditTablename.Text;
|
||||||
Mainform.ChildWin.ShowTable(EditTablename.Text);
|
Mainform.ChildWin.ShowTable(EditTablename.Text);
|
||||||
Close;
|
Close;
|
||||||
|
Reference in New Issue
Block a user