Skip to content

Commit

Permalink
don't open feature form and identify results window (fixes reintroduced
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 21, 2014
1 parent 8c596c6 commit 46ce006
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgsidentifyresultsdialog.cpp
Expand Up @@ -267,6 +267,8 @@ QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidge
mExpandNewToolButton->setIcon( QgsApplication::getThemeIcon( "/mActionExpandNewTree.png" ) );
mCopyToolButton->setIcon( QgsApplication::getThemeIcon( "/mActionEditCopy.png" ) );
mPrintToolButton->setIcon( QgsApplication::getThemeIcon( "/mActionFilePrint.png" ) );
mOpenFormButton->setIcon( QgsApplication::getThemeIcon( "/mActionPropertyItem.png" ) );
mOpenFormButton->setDisabled( true );

QSettings mySettings;
restoreGeometry( mySettings.value( "/Windows/Identify/geometry" ).toByteArray() );
Expand Down Expand Up @@ -664,6 +666,7 @@ void QgsIdentifyResultsDialog::show()
// don't show the form dialog instead of the results window
lstResults->setCurrentItem( featItem );
featureForm();
return;
}
}

Expand Down Expand Up @@ -1098,6 +1101,7 @@ void QgsIdentifyResultsDialog::handleCurrentItemChanged( QTreeWidgetItem *curren

QgsIdentifyResultsFeatureItem *featItem = dynamic_cast<QgsIdentifyResultsFeatureItem *>( featureItem( current ) );
mCopyToolButton->setEnabled( featItem && featItem->feature().isValid() );
mOpenFormButton->setEnabled( featItem && featItem->feature().isValid() );

if ( !current )
{
Expand Down

0 comments on commit 46ce006

Please sign in to comment.