Skip to content

Commit 117261b

Browse files
rduivenvoordem-kuhn
authored andcommitted
Fix for #17104
1 parent 8efa9fa commit 117261b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/plugins/processing/gui/wrappers_postgis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def connectionChanged(self, wrapper):
104104

105105
def setConnection(self, connection):
106106
self._connection = connection
107-
if isinstance(connection, str):
107+
# when there is NO connection (yet), this get's called with a ''-connection
108+
if isinstance(connection, str) and connection != '':
108109
self._database = GeoDB.from_name(connection)
109110
else:
110111
self._database = None

0 commit comments

Comments
 (0)