Skip to content

Commit

Permalink
Update libqfieldsync/layer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Ivanov <[email protected]>
  • Loading branch information
nirvn and suricactus authored Jul 22, 2024
1 parent 6a3e15f commit 27f222f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libqfieldsync/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ def copy(self, target_path, copied_files, keep_existent=False):
suffix = uri_parts[1]

if self.is_file:
if hasattr(QgsFileUtils, "sidecarFilesForPath"):
if Qgis.QGIS_VERSION_INT > 32200:
# QGIS >= 3.22
files_to_copy = QgsFileUtils.sidecarFilesForPath(self.filename)
files_to_copy.add(self.filename)
Expand Down

0 comments on commit 27f222f

Please sign in to comment.