Skip to content
Permalink
Browse files

Fix crash when toggling vector layer editing on

  • Loading branch information
wonder-sk committed Jan 18, 2016
1 parent a0e6d49 commit 1474c0783f87cec32e64b67f1c36dd30ab03dc11
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -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;

0 comments on commit 1474c07

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