浏览代码

wxGUI: improve https://trac.osgeo.org/grass/changeset/48450 (check for element type)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48451 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
59d3de2308
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 0
      gui/wxpython/gui_modules/goutput.py
  2. 0 2
      gui/wxpython/gui_modules/utils.py

+ 1 - 0
gui/wxpython/gui_modules/goutput.py

@@ -531,6 +531,7 @@ class GMConsole(wx.SplitterWindow):
                     # check for <input>=-
                     for p in task.get_options()['params']:
                         if p.get('prompt', '') == 'input' and \
+                                p.get('element', '') == 'file' and \
                                 p.get('age', 'new') == 'old' and \
                                 p.get('value', '') == '-':
                             gcmd.GError(parent = self,

+ 0 - 2
gui/wxpython/gui_modules/utils.py

@@ -99,8 +99,6 @@ def GetLayerNameFromCmd(dcmd, fullyQualified = False, param = None,
         mapname = 'geodesic'
     elif 'd.rhumbline' in dcmd[0]:
         mapname = 'rhumb'
-    elif 'labels=' in dcmd[0]:
-        mapname = dcmd[idx].split('=')[1] + ' labels'
     else:
         params = list()
         for idx in range(len(dcmd)):