Skip to content
Permalink
Browse files

Fix edit button always edits first virtual field (fix #13214)

  • Loading branch information
nyalldawson committed Aug 16, 2015
1 parent abf2398 commit e800419c9d347adad56508fd4cdd9111115103a2
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/qgsfieldsproperties.cpp
@@ -249,6 +249,7 @@ void QgsFieldsProperties::setRow( int row, int idx, const QgsField& field )
QWidget* expressionWidget = new QWidget;
expressionWidget->setLayout( new QHBoxLayout );
QToolButton* editExpressionButton = new QToolButton;
editExpressionButton->setProperty( "Index", mLayer->fields().fieldOriginIndex( idx ) );
editExpressionButton->setIcon( QgsApplication::getThemeIcon( "/mIconExpression.svg" ) );
connect( editExpressionButton, SIGNAL( clicked() ), this, SLOT( updateExpression() ) );
expressionWidget->layout()->setContentsMargins( 0, 0, 0, 0 );

0 comments on commit e800419

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