Skip to content
Permalink
Browse files

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/qgis@6157 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Nov 30, 2006
1 parent c900767 commit 3a756722521f17e87d9ddf0c342de8b00996e51d
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/gui/qgsmaptoolidentify.cpp
@@ -303,12 +303,18 @@ void QgsMapToolIdentify::identifyVectorLayer(QgsVectorLayer* layer, const QgsPoi
mResults->showAllAttributes();
mResults->setTitle(layer->name() + " - " + QObject::tr(" 1 feature found") );
}
if (featureCount == 0)
else if (featureCount == 0)
{
mResults->setTitle(layer->name() + " - " + QObject::tr("No features found") );
mResults->setMessage ( QObject::tr("No features found"), QObject::tr("No features were found in the active layer at the point you clicked") );
}

else
{
QString title = layer->name();
title += QString(" - %d").arg(featureCount);
title += QObject::tr(" features found");
mResults->setTitle(title);
}
QApplication::restoreOverrideCursor();

mResults->show();

0 comments on commit 3a75672

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