mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Show up new session after "Save as" action. Fixes issue #2686.
This commit is contained in:
@ -332,6 +332,8 @@ procedure Tconnform.btnSaveAsClick(Sender: TObject);
|
||||
var
|
||||
newName: String;
|
||||
NameOK: Boolean;
|
||||
NewSess: TConnectionParameters;
|
||||
Node: PVirtualNode;
|
||||
begin
|
||||
// Save session as ...
|
||||
newName := 'Enter new session name ...';
|
||||
@ -347,6 +349,10 @@ begin
|
||||
// Create the key and save its values
|
||||
OpenRegistry(newName);
|
||||
SaveCurrentValues(newName, True);
|
||||
NewSess := LoadConnectionParams(newName);
|
||||
FSessions.Add(NewSess);
|
||||
Node := ListSessions.AddChild(nil, @NewSess);
|
||||
SelectNode(ListSessions, Node);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user