Skip to content

Commit 08fb635

Browse files
author
ersts
committedOct 20, 2008
-Re enabled the identify tool for rasters
-The current logic only enabled the identify tool if the raster had a provider with the capability, GDAL datasets do not have a provider per se -Note the current logic for enabling the identify tool (and other tools?) needs to be re evaluated, as it is done when the layer is loaded not when it is activated/selected git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9500 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5220,6 +5220,12 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
52205220
mActionCutFeatures->setEnabled( false );
52215221
mActionPasteFeatures->setEnabled( false );
52225222

5223+
//NOTE: This check does not really add any protection, as it is called on load not on layer select/activate
5224+
//If you load a layer with a provider and idenitfy ability then load another without, the tool would be disabled for both
5225+
5226+
//Enable the Identify tool ( GDAL datasets draw without a provider )
5227+
//but turn off if data provider exists and has no Identify capabilities
5228+
mActionIdentify->setEnabled( true );
52235229
const QgsRasterLayer* vlayer = dynamic_cast<const QgsRasterLayer*>( layer );
52245230
const QgsRasterDataProvider* dprovider = vlayer->dataProvider();
52255231
if ( dprovider )

0 commit comments

Comments
 (0)
Please sign in to comment.