Browse Source

wxGUI: be less verbose when changing computational region contextual menu

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62624 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
3e8cdb4887
1 changed files with 2 additions and 4 deletions
  1. 2 4
      gui/wxpython/lmgr/layertree.py

+ 2 - 4
gui/wxpython/lmgr/layertree.py

@@ -669,11 +669,10 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         mapLayer = self.GetLayerInfo(self.layer_selected, key = 'maplayer')
         
         cmd = ['g.region',
-               '-p',
                'zoom=%s' % mapLayer.GetName()]
         
         # print output to command log area
-        self._giface.RunCmd(cmd, notification=Notification.HIGHLIGHT)
+        self._giface.RunCmd(cmd, notification=Notification.NO_NOTIFICATION)
         
         # re-render map display
         self._giface.GetMapWindow().UpdateMap(render=True)
@@ -708,11 +707,10 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         
         # print output to command log area
         if len(cmd) > 1:
-            cmd.append('-p')
             if mltype == '3d-raster':
                 cmd.append('-3')
             self._giface.RunCmd(cmd, compReg = False,
-                                notification=Notification.HIGHLIGHT)
+                                notification=Notification.NO_NOTIFICATION)
         
         # re-render map display
         self._giface.GetMapWindow().UpdateMap(render=True)