Skip to content

Commit

Permalink
Fix python signature?
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 26, 2018
1 parent a56deac commit d2bb3d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsvectorlayer.sip.in
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -2926,7 +2926,7 @@ bool QgsVectorLayer::commitChanges()

bool canCommit = true;

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

if ( !canCommit )
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Expand Up @@ -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();
Expand Down

0 comments on commit d2bb3d6

Please sign in to comment.