don't look for features if the layer is not spatial

This commit is contained in:
uclaros 2022-08-21 15:08:49 +03:00 committed by Nyall Dawson
parent a87893b201
commit 81ac7eb29d

View File

@ -150,6 +150,8 @@ bool QgsMapToolSelect::populateContextMenuWithEvent( QMenu *menu, QgsMapMouseEve
return false;
QgsVectorLayer *vlayer = qobject_cast< QgsVectorLayer * >( layer );
if ( !vlayer->isSpatial() )
return false;
menu->addSeparator();