mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
don't look for features if the layer is not spatial
This commit is contained in:
parent
a87893b201
commit
81ac7eb29d
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user