[GRASS-SVN] r56218 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 12 06:42:07 PDT 2013


Author: martinl
Date: 2013-05-12 06:42:06 -0700 (Sun, 12 May 2013)
New Revision: 56218

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI: forms - self._giface can be None


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2013-05-12 13:30:55 UTC (rev 56217)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2013-05-12 13:42:06 UTC (rev 56218)
@@ -656,7 +656,8 @@
             add = True
         else:
             add = False
-        self._giface.mapCreated.emit(name=name, ltype=ltype, add=add)
+        if self._giface:
+            self._giface.mapCreated.emit(name=name, ltype=ltype, add=add)
     
     def OnOK(self, event):
         """!OK button pressed"""



More information about the grass-commit mailing list