Skip to content

Commit b592335

Browse files
committedFeb 24, 2014
don't open the identify dialog beforehand if 'Open feature form, if a single feature is identified' is active and there is only one result (fixes #9631)
1 parent 75a2edb commit b592335

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/app/qgsmaptoolidentifyaction.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ void QgsMapToolIdentifyAction::canvasReleaseEvent( QMouseEvent *e )
9797

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.