Skip to content

Commit

Permalink
Ensuring the Original project is read first
Browse files Browse the repository at this point in the history
  • Loading branch information
SeqLaz committed Oct 2, 2024
1 parent 0ada033 commit e15a317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libqfieldsync/utils/qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def open_project(filename: str, filename_to_read: Optional[str] = None) -> bool:
project = QgsProject.instance()
project.clear()

is_success = project.read(filename_to_read or filename)
is_success = project.read(filename or filename_to_read)
project.setFileName(filename)

return is_success
Expand Down

0 comments on commit e15a317

Please sign in to comment.