mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix for #17104
This commit is contained in:
parent
8efa9fa815
commit
117261bfb7
@ -104,7 +104,8 @@ class SchemaWidgetWrapper(WidgetWrapper, ExpressionWidgetWrapperMixin):
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user