Skip to content

Commit

Permalink
Rename signal in dirtied
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 25, 2017
1 parent 2bfb366 commit 4923a3f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/core/qgstransaction.sip
Expand Up @@ -167,7 +167,7 @@ class QgsTransaction : QObject /Abstract/
Emitted after a rollback
%End

void dirty( const QString &sql );
void dirtied( const QString &sql );
%Docstring
Emitted if a sql query is executed and the underlying data is modified
%End
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstransaction.h
Expand Up @@ -174,7 +174,7 @@ class CORE_EXPORT QgsTransaction : public QObject SIP_ABSTRACT
/**
* Emitted if a sql query is executed and the underlying data is modified
*/
void dirty( const QString &sql );
void dirtied( const QString &sql );

protected:
QgsTransaction( const QString &connString ) SIP_SKIP;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -1346,7 +1346,7 @@ bool QgsVectorLayer::startEditing()
{
mEditBuffer = new QgsVectorLayerEditPassthrough( this );

connect( mDataProvider->transaction(), &QgsTransaction::dirty, this, &QgsVectorLayer::onDirtyTransaction, Qt::UniqueConnection );
connect( mDataProvider->transaction(), &QgsTransaction::dirtied, this, &QgsVectorLayer::onDirtyTransaction, Qt::UniqueConnection );
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgrestransaction.cpp
Expand Up @@ -90,7 +90,7 @@ bool QgsPostgresTransaction::executeSql( const QString &sql, QString &errorMsg,
if ( isDirty )
{
dirtyLastSavePoint();
emit dirty( sql );
emit dirtied( sql );
}

QgsDebugMsg( QString( "Status %1 (OK)" ).arg( r.PQresultStatus() ) );
Expand Down

0 comments on commit 4923a3f

Please sign in to comment.