Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix checkbox status for auxiliary field
- Loading branch information
Showing
with
6 additions
and
6 deletions.
-
+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 ); |
|
|
} |
|
|
} |
|
|
|
|
|