Skip to content

Commit 3c126f4

Browse files
author
rblazek
committed
driver test also
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5086 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 845d573 commit 3c126f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4958,7 +4958,7 @@ void QgisApp::activateDeactivateLayerRelatedActions(const QgsMapLayer* layer)
49584958
{
49594959
const QgsRasterDataProvider* dprovider = vlayer->getDataProvider();
49604960
// does provider allow the identify map tool?
4961-
if (dprovider->capabilities() & QgsRasterDataProvider::Identify)
4961+
if ( dprovider && (dprovider->capabilities() & QgsRasterDataProvider::Identify))
49624962
{
49634963
mActionIdentify->setEnabled(TRUE);
49644964
}

0 commit comments

Comments
 (0)