diff --git a/source/copytable.pas b/source/copytable.pas index 9f70e3e0..fa377e23 100644 --- a/source/copytable.pas +++ b/source/copytable.pas @@ -358,6 +358,7 @@ var Key: TTableKey; ForeignKey: TForeignKey; ClausePattern: String; + NewObj: TDBObject; begin // Compose and run CREATE query @@ -487,7 +488,13 @@ begin end; // actRefresh takes care of whether the table editor is open // See also issue #1597 - MainForm.actRefresh.Execute + MainForm.actRefresh.Execute; + // Select it in tree + NewObj := TDBObject.Create(FDBObj.Connection); + NewObj.NodeType := lntTable; + NewObj.Database := comboDatabase.Text; + NewObj.Name := editNewTablename.Text; + MainForm.ActiveDbObj := NewObj; except on E:EDbError do begin Screen.Cursor := crDefault;