Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
style stuff
  • Loading branch information
signedav committed Feb 23, 2018
1 parent a11582f commit 71d25c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -13216,7 +13216,7 @@ QgsFeature QgisApp::duplicateFeatures( QgsMapLayer *mlayer, const QgsFeature &fe

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

if( !layer->isEditable() )
if ( !layer->isEditable() )
{
//should never happen because the action should be disabled
QString msg = tr( "Cannot duplicate feature in not editable mode on layer %1" ).arg( layer->name() );
Expand Down Expand Up @@ -13270,7 +13270,7 @@ QgsFeature QgisApp::duplicateFeatureDigitized( QgsMapLayer *mlayer, const QgsFea

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

if( !layer->isEditable() )
if ( !layer->isEditable() )
{
//should never happen because the action should be disabled
QString msg = tr( "Cannot duplicate feature in not editable mode on layer %1" ).arg( layer->name() );
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsactionmenu.cpp
Expand Up @@ -119,7 +119,7 @@ void QgsActionMenu::reloadActions()
if ( !mLayer->isEditable() && action.isEnabledOnlyWhenEditable() )
continue;

if ( action.isEnabledOnlyWhenEditable() && ( mMode==QgsAttributeForm::AddFeatureMode || mMode==QgsAttributeForm::IdentifyMode ) )
if ( action.isEnabledOnlyWhenEditable() && ( mMode == QgsAttributeForm::AddFeatureMode || mMode == QgsAttributeForm::IdentifyMode ) )
continue;

QgsAction act( action );
Expand Down Expand Up @@ -157,7 +157,7 @@ void QgsActionMenu::reloadActions()
if ( !mLayer->isEditable() && qaction->isEnabledOnlyWhenEditable() )
continue;

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

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

0 comments on commit 71d25c6

Please sign in to comment.