Skip to content

Commit 9643d52

Browse files
authoredJun 28, 2018
Merge pull request #7316 from m-kuhn/hideZoomToFeature
Hide zoom to feature button for nonspatial embedded forms
2 parents 4c8b801 + cbb8a2b commit 9643d52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/gui/qgsrelationeditorwidget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ void QgsRelationEditorWidget::setRelations( const QgsRelation &relation, const Q
257257
mToggleEditingButton->setEnabled( false );
258258
}
259259

260+
if ( mNmRelation.isValid() )
261+
mZoomToFeatureButton->setVisible( mNmRelation.referencedLayer()->isSpatial() );
262+
else
263+
mZoomToFeatureButton->setVisible( mRelation.referencingLayer()->isSpatial() );
264+
260265
setObjectName( QStringLiteral( "referenced/" ) + mRelation.name() );
261266

262267
updateUi();

0 commit comments

Comments
 (0)
Please sign in to comment.