[GRASS-SVN] r30967 - grass/branches/releasebranch_6_3/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 13 07:19:15 EDT 2008
Author: martinl
Date: 2008-04-13 07:19:13 -0400 (Sun, 13 Apr 2008)
New Revision: 30967
Modified:
grass/branches/releasebranch_6_3/gui/wxpython/gis_set.py
Log:
wxGUI (welcome screen) set wx.NOT_FOUND when list of mapsets is empty
Modified: grass/branches/releasebranch_6_3/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_6_3/gui/wxpython/gis_set.py 2008-04-13 10:28:08 UTC (rev 30966)
+++ grass/branches/releasebranch_6_3/gui/wxpython/gis_set.py 2008-04-13 11:19:13 UTC (rev 30967)
@@ -558,7 +558,11 @@
self.lbmapsets.Clear()
self.lbmapsets.InsertItems(self.listOfMapsets, 0)
- self.lbmapsets.SetSelection(0)
+
+ if len(self.listOfMapsets) > 0:
+ self.lbmapsets.SetSelection(0)
+ else:
+ self.lbmapsets.SetSelection(wx.NOT_FOUND)
def OnSelectMapset(self,event):
"""Mapset selected"""
More information about the grass-commit
mailing list