From 472ac281ff633d86740dc11abaece90dc765403d Mon Sep 17 00:00:00 2001 From: Peillet Sebastien Date: Tue, 21 Apr 2020 01:05:57 +0200 Subject: [PATCH] Fix old Qgis 2.18 slot in QgsAttributeFormlegacyInterface Fixes old projects which use python script actions for opening attribute form --- src/gui/qgsattributeformlegacyinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/qgsattributeformlegacyinterface.cpp b/src/gui/qgsattributeformlegacyinterface.cpp index 7ea9937ded3..1d392091c8f 100644 --- a/src/gui/qgsattributeformlegacyinterface.cpp +++ b/src/gui/qgsattributeformlegacyinterface.cpp @@ -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