Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hide zoom to feature button for nonspatial embedded forms
  • Loading branch information
m-kuhn committed Jun 26, 2018
1 parent b3d2619 commit cbb8a2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsrelationeditorwidget.cpp
Expand Up @@ -257,6 +257,11 @@ void QgsRelationEditorWidget::setRelations( const QgsRelation &relation, const Q
mToggleEditingButton->setEnabled( false );
}

if ( mNmRelation.isValid() )
mZoomToFeatureButton->setVisible( mNmRelation.referencedLayer()->isSpatial() );
else
mZoomToFeatureButton->setVisible( mRelation.referencingLayer()->isSpatial() );

setObjectName( QStringLiteral( "referenced/" ) + mRelation.name() );

updateUi();
Expand Down

0 comments on commit cbb8a2b

Please sign in to comment.