Skip to content

Commit

Permalink
dbmanager: fix adding views to canvas (fixes #10688)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 24, 2014
1 parent 10d0ac0 commit 1949fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -554,7 +554,7 @@ def uri(self):
schema = self.schemaName() if self.schemaName() else ''
geomCol = self.geomColumn if self.type in [Table.VectorType, Table.RasterType] else ""
uniqueCol = self.getValidQGisUniqueFields(True) if self.isView else None
uri.setDataSource(schema, self.name, geomCol if geomCol else None, uniqueCol.name if uniqueCol else "" )
uri.setDataSource(schema, self.name, geomCol if geomCol else None, None, uniqueCol.name if uniqueCol else "" )
return uri

def mimeUri(self):
Expand Down

0 comments on commit 1949fd7

Please sign in to comment.