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@6157 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Nov 30, 2006
1 parent 6ad7db4 commit dbf8c43eeab0eae5879f6a5138e87f03b9c86f23
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 dbf8c43

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