Skip to content
Permalink
Browse files

Fix checkbox status for auxiliary field

  • Loading branch information
pblottiere committed Oct 9, 2017
1 parent 9fd80f9 commit 9cb3ff3cf299f5d986eb07f66542707165809034
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/gui/qgspropertyoverridebutton.cpp
@@ -343,13 +343,13 @@ void QgsPropertyOverrideButton::aboutToShowMenu()

mActionCreateAuxiliaryField->setEnabled( true );
mActionCreateAuxiliaryField->setChecked( false );
if ( alayer && alayer->exists( mDefinition ) )

int index = mVectorLayer->fields().indexFromName( mFieldName );
int srcIndex;
if ( index >= 0 && alayer && mVectorLayer->isAuxiliaryField( index, srcIndex ) )
{
if ( mProperty.field() == QgsAuxiliaryLayer::nameFromProperty( mDefinition, true ) )
{
mActionCreateAuxiliaryField->setEnabled( false );
mActionCreateAuxiliaryField->setChecked( true );
}
mActionCreateAuxiliaryField->setEnabled( false );
mActionCreateAuxiliaryField->setChecked( true );
}
}

0 comments on commit 9cb3ff3

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