Skip to content


Fix a Python error in Processing GUI
Browse files Browse the repository at this point in the history
It turns out that an empty QComboBox evaluates to False:

>>> t=QLineEdit()
>>> bool(t)
>>> c=QComboBox()
>>> bool(c)

Due to that, the 'TABLE' parameter was missing if its (editable) combo box was empty.

Original error - while updating an algorithm's parameters (gdal:importvectorintopostgisdatabaseavailableconnections)

Traceback (most recent call last):
  File "/home/martin/qgis/git-master/build-debug/output/python/plugins/processing/algs/gdal/", line 121, in parametersHaveChanged
    or (not p.checkValueIsAcceptable(parameters[])):
KeyError: 'TABLE'
  • Loading branch information
wonder-sk committed Jun 22, 2018
1 parent 3f16335 commit 80b0c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def getParameterValues(self):
if not param.isDestination():
wrapper = self.mainWidget().wrappers[]
value = None
if wrapper.widget:
if wrapper.widget is not None:
value = wrapper.value()
parameters[] = value

Expand Down

0 comments on commit 80b0c72

Please sign in to comment.