mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix edit button always edits first virtual field (fix #13214)
This commit is contained in:
parent
abf2398880
commit
e800419c9d
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user