Skip to content

Commit

Permalink
Fixing setEvaluateDefaultValues warning deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
SeqLaz committed Nov 26, 2024
1 parent 138ae4a commit fc97f44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libqfieldsync/offline_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ def remove_empty_groups_from_layer_tree_group(

def post_process_offline_layers(self):
project = QgsProject.instance()
project.setEvaluateDefaultValues(False)

if Qgis.QGIS_VERSION_INT >= 34000:
project.setFlag(Qgis.ProjectFlag.EvaluateDefaultValuesOnProviderSide, False)
else:
project.setEvaluateDefaultValues(False)

if Qgis.QGIS_VERSION_INT >= 32600:
project.setTransactionMode(Qgis.TransactionMode.Disabled)
Expand Down

0 comments on commit fc97f44

Please sign in to comment.