Skip to content
Permalink
Browse files

Don't crash when default action is not set

Fix #15092
  • Loading branch information
m-kuhn committed Jun 22, 2016
1 parent 803cbad commit f645b79878f3e027a34347cfc70a058dee316c19
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgisapp.cpp
@@ -5594,6 +5594,8 @@ void QgisApp::updateDefaultFeatureAction( QAction *action )
vlayer->actions()->setDefaultAction( index );
QgsMapLayerActionRegistry::instance()->setDefaultActionForLayer( vlayer, nullptr );

if ( index == -1 )
index = 0;
QgsAction a = vlayer->actions()->listActions().at( index );

if ( !a.name().isEmpty() )

0 comments on commit f645b79

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