Skip to content
Permalink
Browse files

QgsTransaction.create expects layers, not ids

  • Loading branch information
m-kuhn committed Oct 28, 2017
1 parent 0c321fb commit 28f272265082f98786de0af77714c53ff2781b43
Showing with 6 additions and 1 deletion.
  1. +5 −0 doc/api_break.dox
  2. +1 −1 tests/src/python/test_qgsrelationeditwidget.py
@@ -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}
-----------------
@@ -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()

0 comments on commit 28f2722

Please sign in to comment.
You can’t perform that action at this time.