Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Rename signal in dirtied
- Loading branch information
|
@@ -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() ) ); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.