Skip to content
Permalink
Browse files

remove warning when trying to pan to non spatial layer features (#39110)

  • Loading branch information
3nids committed Oct 1, 2020
1 parent 55ee293 commit 398131d5becb5d317f164688563a904040c45b8d
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/attributetable/qgsdualview.cpp
@@ -583,7 +583,7 @@ void QgsDualView::panZoomGroupButtonToggled( QAbstractButton *button, bool check
QgsSettings().setEnumValue( QStringLiteral( "/qgis/attributeTable/featureListBrowsingAction" ), NoAction );
}

if ( checked )
if ( checked && mLayer->isSpatial() )
panOrZoomToFeature( mFeatureListView->currentEditSelection() );
}

@@ -618,7 +618,8 @@ void QgsDualView::featureListCurrentEditSelectionChanged( const QgsFeature &feat
featureset << feat.id();
setCurrentEditSelection( featureset );

panOrZoomToFeature( featureset );
if ( mLayer->isSpatial() )
panOrZoomToFeature( featureset );

}
else

0 comments on commit 398131d

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