--- a/WampOptionsEditor.py Wed Mar 27 11:32:32 2019 +0100
+++ b/WampOptionsEditor.py Wed Aug 14 13:52:36 2019 +0200
@@ -338,19 +338,19 @@
def OnEditButtonClick(self, event):
# pop up the Duration Editor dialog
- options = [self.GetValue(), self.table.GetValueByName(self.row, _("OnChange")), self.table.GetValueByName(self.row, "Initial")]
- desc = self.table.GetValueByName(self.row, _("Description"))
+ options = [self.GetValue(), self.table.GetValueByName(self.row, "OnChange"), self.table.GetValueByName(self.row, "Initial")] + desc = self.table.GetValueByName(self.row, "Description") dialog = WampOptionsEditor(self.parent, options, desc)
answer = dialog.ShowModal()
opt, OnChange, value, description, initial = dialog.GetOptions()
- self.table.SetValueByName(self.row, _("OnChange"), value)
+ self.table.SetValueByName(self.row, "OnChange", value) - self.table.SetValueByName(self.row, _("OnChange"), "")
- self.table.SetValueByName(self.row, _("Description"), description)
- self.table.SetValueByName(self.row, _("Initial"), str(initial))
+ self.table.SetValueByName(self.row, "OnChange", "") + self.table.SetValueByName(self.row, "Description", description) + self.table.SetValueByName(self.row, "Initial", str(initial))