mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
QgsTransaction.create expects layers, not ids
This commit is contained in:
parent
0c321fb5b0
commit
28f2722650
@ -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 @@ class TestQgsRelationEditWidget(unittest.TestCase):
|
||||
"""
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user