Skip to content
Permalink
Browse files

not passing parent to duplicate actions

and removed the QString
  • Loading branch information
signedav committed Jan 12, 2018
1 parent 5cd8827 commit ff96e1d3b03c1b7938d95b1932178b26dfa1fa06
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgisapp.cpp
@@ -7451,8 +7451,8 @@ void QgisApp::setupLayoutManagerConnections()

void QgisApp::setupDuplicateFeaturesAction()
{
mDuplicateFeatureAction.reset( new QgsMapLayerAction( QString( tr( "Duplicate feature" ) ),
this, QgsMapLayerAction::AllActions,
mDuplicateFeatureAction.reset( new QgsMapLayerAction( tr( "Duplicate feature" ),
nullptr, QgsMapLayerAction::SingleFeature,
QgsApplication::getThemeIcon( QStringLiteral( "/mActionDuplicateFeature.svg" ) ) ) );

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

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

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

0 comments on commit ff96e1d

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