mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
remove warning when trying to pan to non spatial layer features (#39110)
This commit is contained in:
parent
55ee2935a2
commit
398131d5be
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user