mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Fix #51940 Refactor Field Source Expression cursor moves at end
This commit is contained in:
parent
70bf31adbd
commit
125483f0ba
@ -284,12 +284,11 @@ QWidget *QgsFieldMappingExpressionDelegate::createEditor( QWidget *parent, const
|
||||
|
||||
editor->setField( index.model()->data( index, Qt::DisplayRole ).toString() );
|
||||
connect( editor,
|
||||
qOverload<const QString &, bool >( &QgsFieldExpressionWidget::fieldChanged ),
|
||||
qOverload<const QString & >( &QgsFieldExpressionWidget::fieldChanged ),
|
||||
this,
|
||||
[ = ]( const QString & fieldName, bool isValid )
|
||||
[ = ]( const QString & fieldName )
|
||||
{
|
||||
Q_UNUSED( fieldName )
|
||||
Q_UNUSED( isValid )
|
||||
const_cast< QgsFieldMappingExpressionDelegate *>( this )->emit commitData( editor );
|
||||
} );
|
||||
return editor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user