Navigation Menu

Skip to content

Commit

Permalink
Fix for #17104
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde authored and m-kuhn committed Sep 5, 2017
1 parent 8efa9fa commit 117261b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/wrappers_postgis.py
Expand Up @@ -104,7 +104,8 @@ def connectionChanged(self, wrapper):

def setConnection(self, connection):
self._connection = connection
if isinstance(connection, str):
# when there is NO connection (yet), this get's called with a ''-connection
if isinstance(connection, str) and connection != '':
self._database = GeoDB.from_name(connection)
else:
self._database = None
Expand Down

0 comments on commit 117261b

Please sign in to comment.