Skip to content
Permalink
Browse files

Rename signal in dirtied

  • Loading branch information
pblottiere committed Oct 17, 2017
1 parent 2bfb366 commit 4923a3f3e8b622291ac4f08dd23327e67ee7a1c5
@@ -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
@@ -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;
@@ -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
{
@@ -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() ) );

0 comments on commit 4923a3f

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