Skip to content

Commit

Permalink
wxGUI/gselect: fix select widget for wxGUI 'd.vect' module (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Dec 21, 2020
1 parent 38247f6 commit b85086e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/wxpython/gui_core/gselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2559,7 +2559,10 @@ def _chckMap(self):
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"))
Expand Down

0 comments on commit b85086e

Please sign in to comment.