Skip to content
Permalink
Browse files

Don't identify active layer if flag disabled

Fixes #40357
  • Loading branch information
roya0045 authored and nyalldawson committed Feb 12, 2021
1 parent 22a4b88 commit 849dab9ca213411bba38fc4f9ccfa08269f0b77d
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmaptoolidentify.cpp
@@ -143,6 +143,8 @@ QList<QgsMapToolIdentify::IdentifyResult> QgsMapToolIdentify::identify( const Qg
emit identifyMessage( tr( "No active layer. To identify features, you must choose an active layer." ) );
return results;
}
if ( !layer->flags().testFlag( QgsMapLayer::Identifiable ) )
return results;

QApplication::setOverrideCursor( Qt::WaitCursor );

0 comments on commit 849dab9

Please sign in to comment.