Explorar o código

wxGUI/gselect: fix select widget for wxGUI 'd.vect' module (#1195)

Tomas Zigo %!s(int64=4) %!d(string=hai) anos
pai
achega
5f9f7920af
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      gui/wxpython/gui_core/gselect.py

+ 4 - 1
gui/wxpython/gui_core/gselect.py

@@ -2559,7 +2559,10 @@ class VectorCategorySelect(wx.Panel):
         if self._isMapSelected():
             layerList = self.giface.GetLayerList()
             layerSelected = layerList.GetSelectedLayer()
-            inputName = self.task.get_param('input')
+            # d.vect module
+            inputName = self.task.get_param(value='map', raiseError=False)
+            if not inputName:
+                inputName = self.task.get_param('input')
             if inputName['value'] != str(layerSelected):
                 if inputName['value'] == '' or inputName['value'] is None:
                     GWarning(_("Input vector map is not selected"))