Skip to content

Commit

Permalink
driver test also
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5086 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Mar 24, 2006
1 parent 70d182e commit 5206413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4958,7 +4958,7 @@ void QgisApp::activateDeactivateLayerRelatedActions(const QgsMapLayer* layer)
{
const QgsRasterDataProvider* dprovider = vlayer->getDataProvider();
// does provider allow the identify map tool?
if (dprovider->capabilities() & QgsRasterDataProvider::Identify)
if ( dprovider && (dprovider->capabilities() & QgsRasterDataProvider::Identify))
{
mActionIdentify->setEnabled(TRUE);
}
Expand Down

0 comments on commit 5206413

Please sign in to comment.