[GRASS-SVN] r48048 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 12:45:06 EDT 2011


Author: martinl
Date: 2011-09-01 09:45:06 -0700 (Thu, 01 Sep 2011)
New Revision: 48048

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: do not switch notebook page when digitizer is closed
	      (merge r48047 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2011-09-01 16:41:27 UTC (rev 48047)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2011-09-01 16:45:06 UTC (rev 48048)
@@ -1105,15 +1105,15 @@
                                                   "closing and rebuilding topology of "
                                                   "vector map <%s>...") % self.mapLayer.GetName(),
                                                 0)
+            self.digit.CloseMap()
+            
             lmgr = self.parent.GetLayerManager()
             if lmgr:
                 lmgr.toolbars['tools'].Enable('vdigit', enable = True)
-                lmgr.notebook.SetSelectionByName('output')
-            self.digit.CloseMap()
-            if lmgr:
                 lmgr.GetLogWindow().GetProgressBar().SetValue(0)
                 lmgr.GetLogWindow().WriteCmdLog(_("Editing of vector map <%s> successfully finished") % \
-                                                    self.mapLayer.GetName())
+                                                    self.mapLayer.GetName(),
+                                                switchPage = False)
             # re-active layer 
             item = self.parent.tree.FindItemByData('maplayer', self.mapLayer)
             if item and self.parent.tree.IsItemChecked(item):
@@ -1139,8 +1139,7 @@
         return True
     
     def UpdateListOfLayers (self, updateTool = False):
-        """!
-        Update list of available vector map layers.
+        """!Update list of available vector map layers.
         This list consists only editable layers (in the current mapset)
 
         @param updateTool True to update also toolbar



More information about the grass-commit mailing list