[GRASS-SVN] r44760 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 29 09:53:57 EST 2010
Author: martinl
Date: 2010-12-29 06:53:56 -0800 (Wed, 29 Dec 2010)
New Revision: 44760
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: switch page only for non-editable query mode
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2010-12-29 14:48:14 UTC (rev 44759)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2010-12-29 14:53:56 UTC (rev 44760)
@@ -1191,8 +1191,9 @@
def _OnQuery(self):
"""!Internal method used by OnQuery*() methods"""
- # switch GIS Manager to output console to show query results
- self._layerManager.notebook.SetSelection(1)
+ if self.toolbars['map'].GetAction() == 'displayAttrb':
+ # switch to output console to show query results
+ self._layerManager.notebook.SetSelection(1)
self.MapWindow.mouse['box'] = "point"
self.MapWindow.zoomtype = 0
@@ -1471,7 +1472,6 @@
numLayers += 1
if numLayers < 1:
display.Enable(False)
-
if action == "displayAttrb":
display.Check(True)
@@ -1481,6 +1481,8 @@
toolsmenu.AppendItem(modify)
self.Bind(wx.EVT_MENU, self.OnQueryModify, modify)
modify.Enable(False)
+ if action == "modifyAttrb":
+ modify.Check(True)
digitToolbar = self.toolbars['vdigit']
if self.tree.layer_selected:
More information about the grass-commit
mailing list