Skip to content

Commit dbf8c43

Browse files
author
g_j_m
committedNov 30, 2006
Fix for ticket #392 (put number of features in identify results dialog
box when there are more than 1 features). git-svn-id: http://svn.osgeo.org/qgis/trunk@6157 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6ad7db4 commit dbf8c43

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎src/gui/qgsmaptoolidentify.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,18 @@ void QgsMapToolIdentify::identifyVectorLayer(QgsVectorLayer* layer, const QgsPoi
303303
mResults->showAllAttributes();
304304
mResults->setTitle(layer->name() + " - " + QObject::tr(" 1 feature found") );
305305
}
306-
if (featureCount == 0)
306+
else if (featureCount == 0)
307307
{
308308
mResults->setTitle(layer->name() + " - " + QObject::tr("No features found") );
309309
mResults->setMessage ( QObject::tr("No features found"), QObject::tr("No features were found in the active layer at the point you clicked") );
310310
}
311-
311+
else
312+
{
313+
QString title = layer->name();
314+
title += QString(" - %d").arg(featureCount);
315+
title += QObject::tr(" features found");
316+
mResults->setTitle(title);
317+
}
312318
QApplication::restoreOverrideCursor();
313319

314320
mResults->show();

0 commit comments

Comments
 (0)
Please sign in to comment.