[GRASS-SVN] r42133 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 5 19:28:09 EDT 2010
Author: martinl
Date: 2010-05-05 19:28:08 -0400 (Wed, 05 May 2010)
New Revision: 42133
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
bugfix #1050
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2010-05-05 21:20:22 UTC (rev 42132)
+++ grass/trunk/gui/wxpython/gis_set.py 2010-05-05 23:28:08 UTC (rev 42133)
@@ -411,19 +411,20 @@
self.lbmapsets.SetSelection(0)
def OnManageLoc(self, event):
+ """!Location management choice control handler
"""
- Location management choice control handler
- """
-
- if event.GetString() == 'Rename mapset':
+ sel = event.GetSelection()
+ if sel == 0:
self.RenameMapset()
- elif event.GetString() == 'Rename location':
+ elif sel == 1:
self.RenameLocation()
- elif event.GetString() == 'Delete mapset':
+ elif sel == 2:
self.DeleteMapset()
- elif event.GetString() == 'Delete location':
+ elif sel == 3:
self.DeleteLocation()
-
+
+ event.Skip()
+
def RenameMapset(self):
"""!Rename selected mapset
"""
More information about the grass-commit
mailing list