mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
parent
803cbada13
commit
f645b79878
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user