Skip to content

Commit

Permalink
Use cached feature for context menu feature action on attribute dialog
Browse files Browse the repository at this point in the history
Dirty hack to
 * fix #11744
 * fix #11546
  • Loading branch information
m-kuhn committed Jan 21, 2015
1 parent dbfe899 commit e49adad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsfeatureaction.cpp
Expand Up @@ -77,7 +77,8 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )
if ( !action.runable() )
continue;

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

Expand Down

0 comments on commit e49adad

Please sign in to comment.