Navigation Menu

Skip to content

Commit

Permalink
Fix crash when toggling vector layer editing on
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 18, 2016
1 parent a0e6d49 commit 1474c07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -7069,7 +7069,8 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )
QString connString = QgsDataSourceURI( vlayer->source() ).connectionInfo();
QString key = vlayer->providerType();

QgsTransactionGroup* tg = mTransactionGroups.find( qMakePair( key, connString ) ).value();
QMap< QPair< QString, QString>, QgsTransactionGroup*>::iterator tIt = mTransactionGroups.find( qMakePair( key, connString ) );
QgsTransactionGroup* tg = ( tIt != mTransactionGroups.end() ? tIt.value() : nullptr );

bool isModified = false;

Expand Down

0 comments on commit 1474c07

Please sign in to comment.