Skip to content

Commit

Permalink
Don't identify active layer if flag disabled
Browse files Browse the repository at this point in the history
Fixes #40357
  • Loading branch information
roya0045 authored and nyalldawson committed Feb 12, 2021
1 parent 22a4b88 commit 849dab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 849dab9

Please sign in to comment.