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 @@ -13210,7 +13210,7 @@ QgsFeature QgisApp::duplicateFeatures( QgsMapLayer *mlayer, const QgsFeature &fe
13210
13210
13211
13211
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
13212
13212
13213
- if( !layer->isEditable() )
13213
+ if ( !layer->isEditable() )
13214
13214
{
13215
13215
//should never happen because the action should be disabled
13216
13216
QString msg = tr( "Cannot duplicate feature in not editable mode on layer %1" ).arg( layer->name() );
@@ -13264,7 +13264,7 @@ QgsFeature QgisApp::duplicateFeatureDigitized( QgsMapLayer *mlayer, const QgsFea
13264
13264
13265
13265
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
13266
13266
13267
- if( !layer->isEditable() )
13267
+ if ( !layer->isEditable() )
13268
13268
{
13269
13269
//should never happen because the action should be disabled
13270
13270
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