Skip to content
Permalink
Browse files

Merge pull request #7316 from m-kuhn/hideZoomToFeature

Hide zoom to feature button for nonspatial embedded forms
  • Loading branch information
m-kuhn committed Jun 28, 2018
2 parents 4c8b801 + cbb8a2b commit 9643d5205525c7ccc7d8b21627f89a37535575e7
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 9643d52

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