[GRASS-SVN] r52994 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 30 08:45:49 PDT 2012
Author: annakrat
Date: 2012-08-30 08:45:48 -0700 (Thu, 30 Aug 2012)
New Revision: 52994
Modified:
grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: check if event is not None
Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py 2012-08-30 15:33:38 UTC (rev 52993)
+++ grass/trunk/gui/wxpython/gui_core/forms.py 2012-08-30 15:45:48 UTC (rev 52994)
@@ -1812,11 +1812,12 @@
self.Layout()
- # skip is needed for wx.Notebook on Windows
- event.Skip()
- # this is needed for dialogs launched from layer manager
- # event is somehow propagated?
- event.StopPropagation()
+ if event:
+ # skip is needed for wx.Notebook on Windows
+ event.Skip()
+ # this is needed for dialogs launched from layer manager
+ # event is somehow propagated?
+ event.StopPropagation()
def OnColorChange(self, event):
myId = event.GetId()
More information about the grass-commit
mailing list