We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 0dd2615 commit 3a335d8Copy full SHA for 3a335d8
src/app/qgisapp.cpp
@@ -4091,7 +4091,12 @@ void QgisApp::attributeTable()
4091
return;
4092
}
4093
4094
- QgsVectorLayer * myLayer = qobject_cast<QgsVectorLayer *>( mMapLegend->currentLayer() );
+ QgsVectorLayer *myLayer = qobject_cast<QgsVectorLayer *>( mMapLegend->currentLayer() );
4095
+ if ( !myLayer )
4096
+ {
4097
+ return;
4098
+ }
4099
+
4100
QgsAttributeTableDialog *mDialog = new QgsAttributeTableDialog( myLayer );
4101
mDialog->show();
4102
// the dialog will be deleted by itself on close
0 commit comments