Skip to content

Commit a7f889d

Browse files
committed
Use a copy of the feature for the action menu in the attribute dialog
1 parent f618cae commit a7f889d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsattributedialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void QgsAttributeDialog::init( QgsVectorLayer* layer, QgsFeature* feature, QgsAt
111111
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
112112

113113
mMenuBar = new QMenuBar( this );
114-
QgsActionMenu* menu = new QgsActionMenu( layer, feature, this );
114+
QgsActionMenu* menu = new QgsActionMenu( layer, &mAttributeForm->feature(), this );
115115
mMenuBar->addMenu( menu );
116116
layout()->setMenuBar( mMenuBar );
117117

0 commit comments

Comments
 (0)