Skip to content
Permalink
Browse files

remove the visibility set of mZoomToFeatureButton on button update si…

…nce the config or the spatial state do not change here
  • Loading branch information
signedav committed Sep 10, 2020
1 parent 8c8e4ee commit 6eafabace4bc77cbb63142ad035a831c33c0513b
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/gui/qgsrelationeditorwidget.cpp
@@ -430,12 +430,6 @@ void QgsRelationEditorWidget::updateButtons()
mDeleteFeatureButton->setEnabled( editable && selectionNotEmpty );
mUnlinkFeatureButton->setEnabled( linkable && selectionNotEmpty );

mZoomToFeatureButton->setVisible(
mButtons.testFlag( QgsAttributeEditorRelation::Button::ZoomToChildFeature ) &&
mEditorContext.mapCanvas() &&
mChildIsSpatial
);

mZoomToFeatureButton->setEnabled( selectionNotEmpty );

mToggleEditingButton->setChecked( editable );

0 comments on commit 6eafaba

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