Skip to content
Permalink
Browse files
Fix crash in tests
  • Loading branch information
nyalldawson committed Jul 12, 2021
1 parent ebf7128 commit 7c21b3debb91753a5a56077645a69783dbff3475
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/qgisapp.cpp
@@ -10053,6 +10053,9 @@ void QgisApp::enableStreamDigitizing( bool enable )

void QgisApp::enableDigitizeTechniqueActions( bool enable, QAction *triggeredFromToolAction )
{
if ( !mMapTools )
return;

QgsSettings settings;

const QList< QgsMapToolCapture * > captureTools = mMapTools->captureTools();
@@ -14787,7 +14790,8 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
mActionReverseLine->setEnabled( false );
mActionTrimExtendFeature->setEnabled( false );

mUndoDock->widget()->setEnabled( false );
if ( mUndoDock && mUndoDock->widget() )
mUndoDock->widget()->setEnabled( false );
mActionUndo->setEnabled( false );
mActionRedo->setEnabled( false );
mActionSimplifyFeature->setEnabled( false );

0 comments on commit 7c21b3d

Please sign in to comment.