Avoid a complete list refresh after editing a single server variable, only refresh the relevant node.

This commit is contained in:
Ansgar Becker
2008-03-02 17:44:40 +00:00
parent c7b7897a8b
commit a810ca77cb

View File

@@ -6972,8 +6972,9 @@ begin
NodeData := ListVariables.GetNodeData(ListVariables.FocusedNode);
EditVariableForm.VarName := NodeData.Captions[0];
EditVariableForm.VarValue := NodeData.Captions[1];
// Refresh relevant list node
if EditVariableForm.ShowModal = mrOK then
ShowVariablesAndProcesses(Sender);
NodeData.Captions[1] := GetVar('SHOW VARIABLES LIKE '+esc(NodeData.Captions[0]), 1);
end;