From 793ad4abde82d146ad3993fc244baabe76c2a054 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Thu, 25 Sep 2025 12:57:57 +0100 Subject: [PATCH] show layer name in the identify menu if there are overlapping features from the same layer (fix #50049) --- src/gui/qgsidentifymenu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/qgsidentifymenu.cpp b/src/gui/qgsidentifymenu.cpp index f1cf1f4380d..f0e601c7f6f 100644 --- a/src/gui/qgsidentifymenu.cpp +++ b/src/gui/qgsidentifymenu.cpp @@ -428,6 +428,11 @@ void QgsIdentifyMenu::addVectorLayer( QgsVectorLayer *layer, const QListname(), featureTitle ); + if ( customFeatureActions.isEmpty() && ( !featureActionMenu || featureActionMenu->actions().isEmpty() ) ) { featureAction = new QAction( featureTitle, layerMenu );