Skip to content

Commit ff96e1d

Browse files
committedJan 12, 2018
not passing parent to duplicate actions
and removed the QString
1 parent 5cd8827 commit ff96e1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7451,8 +7451,8 @@ void QgisApp::setupLayoutManagerConnections()
74517451

74527452
void QgisApp::setupDuplicateFeaturesAction()
74537453
{
7454-
mDuplicateFeatureAction.reset( new QgsMapLayerAction( QString( tr( "Duplicate feature" ) ),
7455-
this, QgsMapLayerAction::AllActions,
7454+
mDuplicateFeatureAction.reset( new QgsMapLayerAction( tr( "Duplicate feature" ),
7455+
nullptr, QgsMapLayerAction::SingleFeature,
74567456
QgsApplication::getThemeIcon( QStringLiteral( "/mActionDuplicateFeature.svg" ) ) ) );
74577457

74587458
QgsGui::mapLayerActionRegistry()->addMapLayerAction( mDuplicateFeatureAction.get() );
@@ -7462,8 +7462,8 @@ void QgisApp::setupDuplicateFeaturesAction()
74627462
}
74637463
);
74647464

7465-
mDuplicateFeatureDigitizeAction.reset( new QgsMapLayerAction( QString( tr( "Duplicate feature and digitize" ) ),
7466-
this, QgsMapLayerAction::AllActions,
7465+
mDuplicateFeatureDigitizeAction.reset( new QgsMapLayerAction( tr( "Duplicate feature and digitize" ),
7466+
nullptr, QgsMapLayerAction::SingleFeature,
74677467
QgsApplication::getThemeIcon( QStringLiteral( "/mActionDuplicateFeatureDigitized.svg" ) ) ) );
74687468

74697469
QgsGui::mapLayerActionRegistry()->addMapLayerAction( mDuplicateFeatureDigitizeAction.get() );

0 commit comments

Comments
 (0)
Please sign in to comment.