# HG changeset patch # User Laurent Bessard # Date 1380729496 -7200 # Node ID 7e5702d1f246d76b00d8c6100b93a30bcd2fae6d # Parent 6adf05c4508d3578293da2f05127bb383be67394 Fixed bug when cancelling ActionBlockDialog diff -r 6adf05c4508d -r 7e5702d1f246 dialogs/ActionBlockDialog.py --- a/dialogs/ActionBlockDialog.py Wed Oct 02 17:23:44 2013 +0200 +++ b/dialogs/ActionBlockDialog.py Wed Oct 02 17:58:16 2013 +0200 @@ -205,13 +205,14 @@ def SetValues(self, actions): for action in actions: - if action.type == "reference" and action.value in self.ActionList: - action.type = "Action" - elif action.type == "reference" and action.value in self.VariableList: - action.type = "Variable" + row = action.copy() + if row.type == "reference" and row.value in self.ActionList: + row.type = "Action" + elif row.type == "reference" and row.value in self.VariableList: + row.type = "Variable" else: - action.type = "Inline" - self.Table.SetData(actions) + row.type = "Inline" + self.Table.AppendRow(row) self.Table.ResetView(self.ActionsGrid) if len(actions) > 0: self.ActionsGrid.SetGridCursor(0, 0)