Skip to content
Permalink
Browse files

Fix python signature?

  • Loading branch information
m-kuhn committed Sep 26, 2018
1 parent a56deac commit d2bb3d606b466abc5e6069e49c2e83f5db0f13eb
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/core/auto_generated/qgsvectorlayer.sip.in
  2. +1 −1 src/core/qgsvectorlayer.cpp
  3. +1 −1 src/core/qgsvectorlayer.h
@@ -2354,7 +2354,7 @@ Is emitted, when editing on this layer has started
Is emitted, when edited changes successfully have been written to the data provider
%End

void canCommitChanges( bool &canCommit );
void canCommitChanges( bool *canCommit );
%Docstring
Emitted when a layer wants to commit changes to the data provider.
Can be used to prevent the layer from being saved by setting ``canCommit`` to false.
@@ -2926,7 +2926,7 @@ bool QgsVectorLayer::commitChanges()

bool canCommit = true;

emit canCommitChanges( canCommit );
emit canCommitChanges( &canCommit );

if ( !canCommit )
return false;
@@ -2122,7 +2122,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*
* \since QGIS 3.4
*/
void canCommitChanges( bool &canCommit );
void canCommitChanges( bool *canCommit );

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

0 comments on commit d2bb3d6

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