Title: [commits] (jeffrey) [15926] - Fix bug 11378, typing throws an exception in month view, r=rae
Revision
15926
Author
jeffrey
Date
2007-11-27 14:51:07 -0800 (Tue, 27 Nov 2007)

Log Message

- Fix bug 11378, typing throws an exception in month view, r=rae

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py (15925 => 15926)

--- trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	2007-11-27 22:50:31 UTC (rev 15925)
+++ trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	2007-11-27 22:51:07 UTC (rev 15926)
@@ -1820,11 +1820,11 @@
         # Setting the insertion point seems to work when several keys are typed
         # before the edit widget is displayed, but perhaps there's a better
         # way to achieve this?
+        if self.editor:
+            self.editor.SetInsertionPoint(0)
+            self.editor.SetValue(key)
+            self.editor.SetInsertionPointEnd()
 
-        self.editor.SetInsertionPoint(0)
-        self.editor.SetValue(key)
-        self.editor.SetInsertionPointEnd()
-
     def handleOneChange(self, op, event, filterAllDay=False, filterTimed=False):
         """
         Change self.visibleEvents based on op and event, return the tuple




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to