--- a/etherlab/ConfigEditor.py Thu Mar 28 18:06:03 2013 +0900
+++ b/etherlab/ConfigEditor.py Fri Mar 29 01:13:17 2013 +0100
@@ -761,9 +761,12 @@
self.ProcessVariablesGrid.RefreshButtons()
def SaveProcessVariables(self):
- self.Controler.SetProcessVariables(
- self.ProcessVariablesTable.GetData())
- self.RefreshBuffer()
+ if self.CurrentNodesFilter is not None:
+ if len(self.CurrentNodesFilter) > 0:
+ self.Controler.SetProcessVariables(self.ProcessVariables)
+ else:
+ self.Controler.SetProcessVariables(self.ProcessVariablesTable.GetData())
+ self.RefreshBuffer()
def RefreshStartupCommands(self, position=None, command_idx=None):
if self.CurrentNodesFilter is not None:
@@ -794,6 +797,7 @@
def OnNodesFilterChanged(self, event):
self.RefreshCurrentNodesFilter()
if self.CurrentNodesFilter is not None:
+ self.RefreshProcessVariables()
self.RefreshStartupCommands()
self.NodesVariables.RefreshView()
event.Skip()