Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
QgsTransaction.create expects layers, not ids
- Loading branch information
Showing
with
6 additions
and
1 deletion.
-
+5
−0
doc/api_break.dox
-
+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() |
|
|