[GRASS-SVN] r57925 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 3 05:45:00 PDT 2013


Author: martinl
Date: 2013-10-03 05:45:00 -0700 (Thu, 03 Oct 2013)
New Revision: 57925

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI/lmgr: set icon for unknown items (eg. run d.rast.leg from cmd)


Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2013-10-03 12:34:35 UTC (rev 57924)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2013-10-03 12:45:00 UTC (rev 57925)
@@ -986,7 +986,10 @@
         elif ltype == 'wms':            
             self.SetItemImage(layer, self.ws_icon)
             self.SetItemText(layer, '%s %s' % (_('wms'), label))
-    
+        else:
+            self.SetItemImage(layer, self.cmd_icon)
+            self.SetItemText(layer, '%s %s' % (_('unknown'), label))
+        
         self.first = False
         
         if ltype != 'group':



More information about the grass-commit mailing list