Skip to content

Commit

Permalink
Use a copy of the feature for the action menu in the attribute dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 29, 2014
1 parent f618cae commit a7f889d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributedialog.cpp
Expand Up @@ -111,7 +111,7 @@ void QgsAttributeDialog::init( QgsVectorLayer* layer, QgsFeature* feature, QgsAt
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );

mMenuBar = new QMenuBar( this );
QgsActionMenu* menu = new QgsActionMenu( layer, feature, this );
QgsActionMenu* menu = new QgsActionMenu( layer, &mAttributeForm->feature(), this );
mMenuBar->addMenu( menu );
layout()->setMenuBar( mMenuBar );

Expand Down

0 comments on commit a7f889d

Please sign in to comment.