Skip to content

Commit d2bb3d6

Browse files
committed
Fix python signature?
1 parent a56deac commit d2bb3d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/core/auto_generated/qgsvectorlayer.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ Is emitted, when editing on this layer has started
23542354
Is emitted, when edited changes successfully have been written to the data provider
23552355
%End
23562356

2357-
void canCommitChanges( bool &canCommit );
2357+
void canCommitChanges( bool *canCommit );
23582358
%Docstring
23592359
Emitted when a layer wants to commit changes to the data provider.
23602360
Can be used to prevent the layer from being saved by setting ``canCommit`` to false.

src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@ bool QgsVectorLayer::commitChanges()
29262926

29272927
bool canCommit = true;
29282928

2929-
emit canCommitChanges( canCommit );
2929+
emit canCommitChanges( &canCommit );
29302930

29312931
if ( !canCommit )
29322932
return false;

src/core/qgsvectorlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
21222122
*
21232123
* \since QGIS 3.4
21242124
*/
2125-
void canCommitChanges( bool &canCommit );
2125+
void canCommitChanges( bool *canCommit );
21262126

21272127
//! Is emitted, before changes are committed to the data provider
21282128
void beforeCommitChanges();

0 commit comments

Comments
 (0)