Skip to content

Commit

Permalink
don't open the identify dialog beforehand if 'Open feature form, if a…
Browse files Browse the repository at this point in the history
… single feature is identified' is active and there is only one result (fixes #9631)
  • Loading branch information
jef-n committed Feb 24, 2014
1 parent 75a2edb commit b592335
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/qgsmaptoolidentifyaction.cpp
Expand Up @@ -97,9 +97,10 @@ void QgsMapToolIdentifyAction::canvasReleaseEvent( QMouseEvent *e )

if ( !results.isEmpty() )
{
// Show the dialog before items are inserted so that items can resize themselfs
// Show the dialog before items are inserted so that items can resize themselves
// according to dialog size also the first time, see also #9377
resultsDialog()->QDialog::show();
if( results.size() != 1 || !QSettings().value( "/Map/identifyAutoFeatureForm", false ).toBool() )
resultsDialog()->QDialog::show();

QList<IdentifyResult>::const_iterator result;
for ( result = results.begin(); result != results.end(); ++result )
Expand Down

0 comments on commit b592335

Please sign in to comment.