Skip to content

Commit

Permalink
Fix crash in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 12, 2021
1 parent ebf7128 commit 7c21b3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 7c21b3d

Please sign in to comment.