Skip to content

Commit

Permalink
QgsTransaction.create expects layers, not ids
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 29, 2017
1 parent 0c321fb commit 28f2722
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/api_break.dox
Expand Up @@ -2426,6 +2426,11 @@ QgsTracer {#qgis_api_break_3_0_QgsTracer}

- hasCrsTransformEnabled() and setCrsTransformEnabled() were removed. CRS transformation is now always enabled when required.

QgsTransaction {#qgis_api_break_3_0_QgsTransaction}
--------------

- `createTransaction()` takes a set of map layers instead of a layer ids


QgsTreeWidgetItem {#qgis_api_break_3_0_QgsTreeWidgetItem}
-----------------
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrelationeditwidget.py
Expand Up @@ -233,7 +233,7 @@ def startTransaction(self):
"""
lyrs = [self.vl_a, self.vl_b, self.vl_link]

self.transaction = QgsTransaction.create([l.id() for l in lyrs])
self.transaction = QgsTransaction.create(lyrs)
self.transaction.begin()
for l in lyrs:
l.startEditing()
Expand Down

0 comments on commit 28f2722

Please sign in to comment.