Skip to content

Commit

Permalink
Fix for ticket #392 (put number of features in identify results dialog
Browse files Browse the repository at this point in the history
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 committed Nov 30, 2006
1 parent 6ad7db4 commit dbf8c43
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit dbf8c43

Please sign in to comment.