[GRASS-SVN] r42134 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 5 19:31:24 EDT 2010


Author: martinl
Date: 2010-05-05 19:31:23 -0400 (Wed, 05 May 2010)
New Revision: 42134

Modified:
   grass/branches/develbranch_6/gui/wxpython/gis_set.py
Log:
bugfix #1050
(merge r42133 from devbr6)


Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gis_set.py	2010-05-05 23:28:08 UTC (rev 42133)
+++ grass/branches/develbranch_6/gui/wxpython/gis_set.py	2010-05-05 23:31:23 UTC (rev 42134)
@@ -413,19 +413,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