Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
show identify dialog before items are inserted so that they can adjus…
…t size according to dialog size also the first time dialog is opened
  • Loading branch information
blazek committed Feb 13, 2014
1 parent 8e330e3 commit 2a4f104
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/app/qgsmaptoolidentifyaction.cpp
Expand Up @@ -100,14 +100,19 @@ void QgsMapToolIdentifyAction::canvasReleaseEvent( QMouseEvent *e )
disconnect( this, SIGNAL( identifyProgress( int, int ) ), QgisApp::instance(), SLOT( showProgress( int, int ) ) );
disconnect( this, SIGNAL( identifyMessage( QString ) ), QgisApp::instance(), SLOT( showStatusMessage( QString ) ) );

QList<IdentifyResult>::const_iterator result;
for ( result = results.begin(); result != results.end(); ++result )
{
resultsDialog()->addFeature( *result );
}

if ( !results.isEmpty() )
{
// Show the dialog before items are inserted so that items can resize themselfs
// according to dialog size also the first time, see also #9377
resultsDialog()->QDialog::show();

QList<IdentifyResult>::const_iterator result;
for ( result = results.begin(); result != results.end(); ++result )
{
resultsDialog()->addFeature( *result );
}

// Call QgsIdentifyResultsDialog::show() to adjust with items
resultsDialog()->show();
}
else
Expand Down

0 comments on commit 2a4f104

Please sign in to comment.