Skip to content

Commit

Permalink
Fix old Qgis 2.18 slot in QgsAttributeFormlegacyInterface
Browse files Browse the repository at this point in the history
Fixes old projects which use python script actions for opening attribute form
  • Loading branch information
SebastienPeillet committed Apr 20, 2020
1 parent 0633989 commit 472ac28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsattributeformlegacyinterface.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 472ac28

Please sign in to comment.