Skip to content
Permalink
Browse files

style stuff

  • Loading branch information
signedav committed Feb 23, 2018
1 parent a11582f commit 71d25c685384990dc3151486c510ed6ed92e4063
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/app/qgisapp.cpp
  2. +2 −2 src/gui/qgsactionmenu.cpp
@@ -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() );
@@ -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() );
@@ -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 71d25c6

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