File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13216,7 +13216,7 @@ QgsFeature QgisApp::duplicateFeatures( QgsMapLayer *mlayer, const QgsFeature &fe
13216
13216
13217
13217
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
13218
13218
13219
- if( !layer->isEditable() )
13219
+ if ( !layer->isEditable() )
13220
13220
{
13221
13221
//should never happen because the action should be disabled
13222
13222
QString msg = tr( "Cannot duplicate feature in not editable mode on layer %1" ).arg( layer->name() );
@@ -13270,7 +13270,7 @@ QgsFeature QgisApp::duplicateFeatureDigitized( QgsMapLayer *mlayer, const QgsFea
13270
13270
13271
13271
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
13272
13272
13273
- if( !layer->isEditable() )
13273
+ if ( !layer->isEditable() )
13274
13274
{
13275
13275
//should never happen because the action should be disabled
13276
13276
QString msg = tr( "Cannot duplicate feature in not editable mode on layer %1" ).arg( layer->name() );
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ void QgsActionMenu::reloadActions()
119
119
if ( !mLayer ->isEditable () && action.isEnabledOnlyWhenEditable () )
120
120
continue ;
121
121
122
- if ( action.isEnabledOnlyWhenEditable () && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
122
+ if ( action.isEnabledOnlyWhenEditable () && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
123
123
continue ;
124
124
125
125
QgsAction act ( action );
@@ -157,7 +157,7 @@ void QgsActionMenu::reloadActions()
157
157
if ( !mLayer ->isEditable () && qaction->isEnabledOnlyWhenEditable () )
158
158
continue ;
159
159
160
- if ( qaction->isEnabledOnlyWhenEditable () && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
160
+ if ( qaction->isEnabledOnlyWhenEditable () && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
161
161
continue ;
162
162
163
163
QAction *qAction = new QAction ( qaction->icon (), qaction->text (), this );
You can’t perform that action at this time.
0 commit comments