소스 검색

wxGUI: don't open mcalc builder when running modeler

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48860 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 년 전
부모
커밋
f19d2af61b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      gui/wxpython/gui_modules/prompt.py

+ 2 - 1
gui/wxpython/gui_modules/prompt.py

@@ -794,7 +794,8 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
         cmd = text.strip().split(' ')[0]
 
         if not self.cmdDesc or cmd != self.cmdDesc.get_name():
-            if cmd in ('r.mapcalc', 'r3.mapcalc'):
+            if cmd in ('r.mapcalc', 'r3.mapcalc') and \
+                    self.parent.parent.GetName() == 'LayerManager':
                 self.parent.parent.OnMapCalculator(event = None, cmd = [cmd])
                 # add command to history & clean prompt
                 self.UpdateCmdHistory([cmd])