Skip to content

Commit 71d25c6

Browse files
committed
style stuff
1 parent a11582f commit 71d25c6

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
@@ -13216,7 +13216,7 @@ QgsFeature QgisApp::duplicateFeatures( QgsMapLayer *mlayer, const QgsFeature &fe
1321613216

1321713217
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
1321813218

13219-
if( !layer->isEditable() )
13219+
if ( !layer->isEditable() )
1322013220
{
1322113221
//should never happen because the action should be disabled
1322213222
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
1327013270

1327113271
QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mlayer );
1327213272

13273-
if( !layer->isEditable() )
13273+
if ( !layer->isEditable() )
1327413274
{
1327513275
//should never happen because the action should be disabled
1327613276
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)