Skip to content

Commit 940d204

Browse files
signedavnyalldawson
authored andcommitted
style stuff
1 parent 402b7e4 commit 940d204

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/qgisapp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -13210,7 +13210,7 @@ QgsFeature QgisApp::duplicateFeatures( QgsMapLayer *mlayer, const QgsFeature &fe
1321013210

1321113211
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
1321213212

13213-
if( !layer->isEditable() )
13213+
if ( !layer->isEditable() )
1321413214
{
1321513215
//should never happen because the action should be disabled
1321613216
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
1326413264

1326513265
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
1326613266

13267-
if( !layer->isEditable() )
13267+
if ( !layer->isEditable() )
1326813268
{
1326913269
//should never happen because the action should be disabled
1327013270
QString msg = tr( "Cannot duplicate feature in not editable mode on layer %1" ).arg( layer->name() );

src/gui/qgsactionmenu.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void QgsActionMenu::reloadActions()
119119
if ( !mLayer->isEditable() && action.isEnabledOnlyWhenEditable() )
120120
continue;
121121

122-
if ( action.isEnabledOnlyWhenEditable() && ( mMode==QgsAttributeForm::AddFeatureMode || mMode==QgsAttributeForm::IdentifyMode ) )
122+
if ( action.isEnabledOnlyWhenEditable() && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
123123
continue;
124124

125125
QgsAction act( action );
@@ -157,7 +157,7 @@ void QgsActionMenu::reloadActions()
157157
if ( !mLayer->isEditable() && qaction->isEnabledOnlyWhenEditable() )
158158
continue;
159159

160-
if ( qaction->isEnabledOnlyWhenEditable() && ( mMode==QgsAttributeForm::AddFeatureMode || mMode==QgsAttributeForm::IdentifyMode ) )
160+
if ( qaction->isEnabledOnlyWhenEditable() && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
161161
continue;
162162

163163
QAction *qAction = new QAction( qaction->icon(), qaction->text(), this );

0 commit comments

Comments
 (0)