[GRASS-SVN] r48047 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 12:41:27 EDT 2011


Author: martinl
Date: 2011-09-01 09:41:27 -0700 (Thu, 01 Sep 2011)
New Revision: 48047

Modified:
   grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: do not switch notebook page when digitizer is closed


Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2011-09-01 16:20:49 UTC (rev 48046)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2011-09-01 16:41:27 UTC (rev 48047)
@@ -1129,15 +1129,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):
@@ -1163,8 +1163,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