Fix old Qgis 2.18 slot in QgsAttributeFormlegacyInterface

Fixes old projects which use python script actions for opening attribute form
This commit is contained in:
Peillet Sebastien 2020-04-21 01:05:57 +02:00 committed by GitHub
parent 0633989524
commit 472ac281ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,8 @@ void QgsAttributeFormLegacyInterface::featureChanged()
{
// If the init function did not call disconnect, we do it here before reconnecting
// If it did call disconnect, then the call will just do nothing
QObject::disconnect( buttonBox, SIGNAL( accepted() ), form(), SLOT( accept() ) );
QObject::connect( buttonBox, SIGNAL( accepted() ), form(), SLOT( accept() ) );
QObject::disconnect( buttonBox, &QDialogButtonBox::accepted, form(), &QgsAttributeForm::save );
QObject::connect( buttonBox, &QDialogButtonBox::accepted, form(), &QgsAttributeForm::save );
}
// Generate the unique ID of this feature. We used to use feature ID but some providers