Skip to content
Permalink
Browse files

Use a copy of the feature for the action menu in the attribute dialog

  • Loading branch information
m-kuhn committed Oct 29, 2014
1 parent f618cae commit a7f889dc5331a4bb665ecd64b70073b73eea3245
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributedialog.cpp
@@ -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 );

0 comments on commit a7f889d

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