mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
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:
parent
0633989524
commit
472ac281ff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user