Skip to content
Permalink
Browse files
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 2a4f10495f8daa514a1db36b63eccf7694ab81e2
Showing with 11 additions and 6 deletions.
  1. +11 −6 src/app/qgsmaptoolidentifyaction.cpp
@@ -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

0 comments on commit 2a4f104

Please sign in to comment.