Skip to content
Permalink
Browse files

Fix crash when right clicking on a feature in form view and no

layer actions are set
  • Loading branch information
nyalldawson committed Feb 17, 2016
1 parent cdf05ac commit 3c0cb2ebcc225effa5c816d9cfebe19a5df19874
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/attributetable/qgsfeaturelistview.cpp
@@ -315,8 +315,8 @@ void QgsFeatureListView::contextMenuEvent( QContextMenuEvent *event )
{
QgsFeature feature = mModel->data( index, QgsFeatureListModel::FeatureRole ).value<QgsFeature>();

QgsActionMenu menu( mModel->layerCache()->layer(), &feature, this );
menu.exec( event->globalPos() );
QgsActionMenu* menu = new QgsActionMenu( mModel->layerCache()->layer(), &feature, this );
menu->exec( event->globalPos() );
}
}

0 comments on commit 3c0cb2e

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