Skip to content
Permalink
Browse files

driver test also

git-svn-id: http://svn.osgeo.org/qgis/trunk@5086 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Mar 24, 2006
1 parent 70d182e commit 520641390e9a680c24e2d4c93786eca0e5384942
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgisapp.cpp
@@ -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);
}

0 comments on commit 5206413

Please sign in to comment.
You can’t perform that action at this time.