fix issue that sometimes period for cyclic task wasn't saved.
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 27 Oct 2016 16:24:13 +0300
changeset 1553 abe55de5316b
parent 1552 9a59d1de198a
child 1554 01d2c8a8a928
fix issue that sometimes period for cyclic task wasn't saved.

This is complete fix for the problem described in 8626bba.
controls/DurationCellEditor.py
--- a/controls/DurationCellEditor.py	Thu Oct 27 15:31:43 2016 +0300
+++ b/controls/DurationCellEditor.py	Thu Oct 27 16:24:13 2016 +0300
@@ -128,11 +128,11 @@
 
     if wx.VERSION >= (3, 0, 0):
         def EndEdit(self, row, col, grid, oldval):
-            self.EndEditInternal(row, col, grid, oldval)
+            return self.EndEditInternal(row, col, grid, oldval)
     else:
         def EndEdit(self, row, col, grid):
             oldval = self.Table.GetValueByName(row, self.Colname)            
-            self.EndEditInternal(row, col, grid, oldval)    
+            return self.EndEditInternal(row, col, grid, oldval)    
 
     def SetSize(self, rect):
         self.CellControl.SetDimensions(rect.x + 1, rect.y,