Skip to content
Permalink
Browse files

style stuff

  • Loading branch information
signedav authored and nyalldawson committed Feb 24, 2018
1 parent 402b7e4 commit 940d2047c733aa702201a20e1a7efea03a439caf
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/app/qgisapp.cpp
  2. +2 −2 src/gui/qgsactionmenu.cpp
@@ -13210,7 +13210,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() );
@@ -13264,7 +13264,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() );
@@ -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 );
@@ -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 );

0 comments on commit 940d204

Please sign in to comment.
You can’t perform that action at this time.