Skip to content
Permalink
Browse files

Hide zoom to feature button for nonspatial embedded forms

  • Loading branch information
m-kuhn committed Jun 26, 2018
1 parent b3d2619 commit cbb8a2b68a2d54cbc2224dc84c249e8e36607964
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsrelationeditorwidget.cpp
@@ -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();

0 comments on commit cbb8a2b

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