Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another fix for OTB widget
  • Loading branch information
nyalldawson committed Mar 31, 2020
1 parent bc659fe commit 7a69bf3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python/plugins/processing/algs/otb/OtbChoiceWidget.py
Expand Up @@ -70,10 +70,13 @@ def __updateWrapper(self, name, visible):

#Fur Qgis modeler
else:
if name in self.dialog.widget.widget.wrappers:
self.__setWrapperVisibility(self.dialog.widget.widget.wrappers[name], visible)
if name in self.dialog.widget.widget.widget_labels:
self.dialog.widget.widget.widget_labels[name].setVisible(visible)
try:
if name in self.dialog.widget.widget.wrappers:
self.__setWrapperVisibility(self.dialog.widget.widget.wrappers[name], visible)
if name in self.dialog.widget.widget.widget_labels:
self.dialog.widget.widget.widget_labels[name].setVisible(visible)
except AttributeError:
pass

def __setWrapperVisibility(self, wrapper, v):
# For compatibility with 3.x API, we need to check whether the wrapper is
Expand Down

0 comments on commit 7a69bf3

Please sign in to comment.