diff --git a/map_tools/dimensioning.py b/map_tools/dimensioning.py index 7481b5d4d..afea412c3 100644 --- a/map_tools/dimensioning.py +++ b/map_tools/dimensioning.py @@ -29,7 +29,9 @@ def open_new_dimensioning(self, feature_id): # Restore user value (Settings/Options/Digitizing/Suppress attribute from pop-up after feature creation) QSettings().setValue("/Qgis/digitizing/disable_enter_attribute_values_dialog", self.suppres_form) - + config = self.layer.editFormConfig() + config.setSuppress(self.conf_supp) + self.layer.setEditFormConfig(config) self.recover_previus_maptool() self.api_dim = ApiDimensioning(self.iface, self.settings, self.controller, self.plugin_dir) @@ -73,6 +75,10 @@ def activate(self): # and set True self.suppres_form = QSettings().value("/Qgis/digitizing/disable_enter_attribute_values_dialog") QSettings().setValue("/Qgis/digitizing/disable_enter_attribute_values_dialog", True) + config = self.layer.editFormConfig() + self.conf_supp = config.suppress() + config.setSuppress(0) + self.layer.setEditFormConfig(config) self.iface.setActiveLayer(self.layer) self.controller.set_layer_visible(self.layer) self.layer.startEditing() diff --git a/sql b/sql index dc5042715..e3e1caed4 160000 --- a/sql +++ b/sql @@ -1 +1 @@ -Subproject commit dc5042715cc054307a9c78449f3986d2e5b2eb35 +Subproject commit e3e1caed4da1de1125045433aa3965fc62fdc2eb