Skip to content

Commit 28f2722

Browse files
committed
QgsTransaction.create expects layers, not ids
1 parent 0c321fb commit 28f2722

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/api_break.dox

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,6 +2426,11 @@ QgsTracer {#qgis_api_break_3_0_QgsTracer}
24262426

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

2429+
QgsTransaction {#qgis_api_break_3_0_QgsTransaction}
2430+
--------------
2431+
2432+
- `createTransaction()` takes a set of map layers instead of a layer ids
2433+
24292434

24302435
QgsTreeWidgetItem {#qgis_api_break_3_0_QgsTreeWidgetItem}
24312436
-----------------

tests/src/python/test_qgsrelationeditwidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def startTransaction(self):
233233
"""
234234
lyrs = [self.vl_a, self.vl_b, self.vl_link]
235235

236-
self.transaction = QgsTransaction.create([l.id() for l in lyrs])
236+
self.transaction = QgsTransaction.create(lyrs)
237237
self.transaction.begin()
238238
for l in lyrs:
239239
l.startEditing()

0 commit comments

Comments
 (0)