@@ -2035,6 +2035,7 @@ void QgisApp::createToolBars()
2035
2035
bt->setDefaultAction ( mActionFeatureAction );
2036
2036
mFeatureActionMenu = new QMenu ( bt );
2037
2037
connect ( mFeatureActionMenu , SIGNAL ( triggered ( QAction * ) ), this , SLOT ( updateDefaultFeatureAction ( QAction * ) ) );
2038
+ connect ( mFeatureActionMenu , SIGNAL ( triggered ( QAction * ) ), this , SLOT ( doFeatureAction () ) );
2038
2039
connect ( mFeatureActionMenu , SIGNAL ( aboutToShow () ), this , SLOT ( refreshFeatureActions () ) );
2039
2040
bt->setMenu ( mFeatureActionMenu );
2040
2041
QAction* featureActionAction = mAttributesToolBar ->insertWidget ( selectAction, bt );
@@ -5599,8 +5600,6 @@ void QgisApp::updateDefaultFeatureAction( QAction *action )
5599
5600
QgsMapLayerActionRegistry::instance ()->setDefaultActionForLayer ( vlayer, nullptr );
5600
5601
}
5601
5602
}
5602
-
5603
- doFeatureAction ();
5604
5603
}
5605
5604
5606
5605
void QgisApp::refreshFeatureActions ()
@@ -10588,17 +10587,14 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
10588
10587
}
10589
10588
10590
10589
mActionOpenFieldCalc ->setEnabled ( true );
10591
-
10592
- return ;
10593
10590
}
10594
10591
else
10595
10592
{
10596
10593
mUndoDock ->widget ()->setEnabled ( false );
10597
10594
mActionUndo ->setEnabled ( false );
10598
10595
mActionRedo ->setEnabled ( false );
10596
+ mActionLayerSubsetString ->setEnabled ( false );
10599
10597
}
10600
-
10601
- mActionLayerSubsetString ->setEnabled ( false );
10602
10598
} // end vector layer block
10603
10599
/* ************Raster layers*************/
10604
10600
else if ( layer->type () == QgsMapLayer::RasterLayer )
0 commit comments