Skip to content

Commit 0e32807

Browse files
committed
Change canCommitChanges to allowCommit flag
1 parent cda4950 commit 0e32807

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/core/auto_generated/qgsvectorlayer.sip.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ Configuration and logic to apply automatically on any edit happening on this lay
22392239
.. versionadded:: 3.4
22402240
%End
22412241

2242-
bool allowCommit()() const;
2242+
bool allowCommit() const;
22432243
%Docstring
22442244
Controls, if the layer is allowed to commit changes. If this is set to false
22452245
it will not be possible to commit changes on this layer. This can be used to
@@ -2258,7 +2258,7 @@ When calling :py:func:`commitChanges`, this flag is checked just after the
22582258
.. versionadded:: 3.4
22592259
%End
22602260

2261-
void setAllowCommit()( bool allowCommit() );
2261+
void setAllowCommit( bool allowCommit );
22622262
%Docstring
22632263
Controls, if the layer is allowed to commit changes. If this is set to false
22642264
it will not be possible to commit changes on this layer. This can be used to

src/core/qgsvectorlayer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
20262026
*
20272027
* \since QGIS 3.4
20282028
*/
2029-
bool allowCommit()() const;
2029+
bool allowCommit() const;
20302030

20312031
/**
20322032
* Controls, if the layer is allowed to commit changes. If this is set to false
@@ -2044,7 +2044,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
20442044
*
20452045
* \since QGIS 3.4
20462046
*/
2047-
void setAllowCommit()( bool allowCommit() );
2047+
void setAllowCommit( bool allowCommit );
20482048

20492049
public slots:
20502050

0 commit comments

Comments
 (0)