Skip to content
Permalink
Browse files
fix occassional crash when opening the attribute table
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12241 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 24, 2009
1 parent cfb6d6b commit 92dddb7
Showing 1 changed file with 6 additions and 1 deletion.
@@ -4091,7 +4091,12 @@ void QgisApp::attributeTable()
return;
}

QgsVectorLayer * myLayer = qobject_cast<QgsVectorLayer *>( mMapLegend->currentLayer() );
QgsVectorLayer *myLayer = qobject_cast<QgsVectorLayer *>( mMapLegend->currentLayer() );
if ( !myLayer )
{
return;
}

QgsAttributeTableDialog *mDialog = new QgsAttributeTableDialog( myLayer );
mDialog->show();
// the dialog will be deleted by itself on close

0 comments on commit 92dddb7

Please sign in to comment.