diff --git a/plugin.py b/plugin.py index b8450a3..a914a60 100644 --- a/plugin.py +++ b/plugin.py @@ -171,7 +171,7 @@ def set_database_connection(self, connection=None, crs=None): settings_plugin.beginGroup(metadata.name().replace(" ", "_")) settings_postgis.beginGroup('PostgreSQL/connections') self.connection = connection - self.crs = crs + self.crs = QgsCoordinateReferenceSystem(crs) if not bool(self.connection): # fetch pre-chosen database connection self.connection = settings_plugin.value("DatabaseConnection", None)