Skip to content
Permalink
Browse files

FIX #15670 Show count in Identify Results dialog

  • Loading branch information
suricactus authored and nyalldawson committed Mar 19, 2020
1 parent ab40162 commit f0e74dfc9867e7c0751421d264324024df1aba94
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsidentifyresultsdialog.cpp
@@ -508,7 +508,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat

if ( !layItem )
{
layItem = new QTreeWidgetItem( QStringList() << vlayer->name() );
layItem = new QTreeWidgetItem( QStringList() << vlayer->name() << tr( "Selected features: %1" ).arg( 0 ) );
layItem->setData( 0, Qt::UserRole, QVariant::fromValue( qobject_cast<QObject *>( vlayer ) ) );
lstResults->addTopLevelItem( layItem );

@@ -526,6 +526,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
featItem->setData( 0, Qt::UserRole + 1, mFeatures.size() );
mFeatures << f;
layItem->addChild( featItem );
layItem->setText( 1, tr( "Selected features: %1" ).arg( layItem->childCount() ) );

if ( derivedAttributes.size() >= 0 )
{

0 comments on commit f0e74df

Please sign in to comment.
You can’t perform that action at this time.