Skip to content

Commit e49adad

Browse files
committedJan 21, 2015
Use cached feature for context menu feature action on attribute dialog
Dirty hack to * fix #11744 * fix #11546
1 parent dbfe899 commit e49adad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/app/qgsfeatureaction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )
7777
if ( !action.runable() )
7878
continue;
7979

80-
QgsFeatureAction *a = new QgsFeatureAction( action.name(), *f, mLayer, i, -1, dialog );
80+
QgsFeature& feat = const_cast<QgsFeature&>( *dialog->feature() );
81+
QgsFeatureAction *a = new QgsFeatureAction( action.name(), feat, mLayer, i, -1, dialog );
8182
dialog->addAction( a );
8283
connect( a, SIGNAL( triggered() ), a, SLOT( execute() ) );
8384

0 commit comments

Comments
 (0)
Please sign in to comment.