diff --git a/qfieldsync/core/offline_converter.py b/qfieldsync/core/offline_converter.py index 110be584..6e617502 100644 --- a/qfieldsync/core/offline_converter.py +++ b/qfieldsync/core/offline_converter.py @@ -155,6 +155,12 @@ def convert(self): self.project_configuration.offline_copy_only_aoi): raise Exception(self.tr("Error trying to convert layers to offline layers")) + # Disable project options that could create problems on a portable + # project with offline layers + if self.__offline_layers: + QgsProject.instance().setEvaluateDefaultValues(False) + QgsProject.instance().setAutoTransaction(False) + # Now we have a project state which can be saved as offline project QgsProject.instance().write(project_path) finally: