Skip to content
Permalink
Browse files
dbmanager: fix adding views to canvas (fixes #10688)
  • Loading branch information
jef-n committed Jun 24, 2014
1 parent 10d0ac0 commit 1949fd7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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):

0 comments on commit 1949fd7

Please sign in to comment.