Skip to content

Commit

Permalink
Merge pull request #284 from jnsebgosselin/prevent_crash_switch_project
Browse files Browse the repository at this point in the history
PR: Set wldset and wxdset to None when project change to avoid a crash
  • Loading branch information
jnsebgosselin committed Apr 11, 2019
2 parents cbccc13 + bcb2205 commit c223383
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gwhat/projet/manager_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def projet(self):
def set_projet(self, projet):
"""Set the namespace for the projet hdf5 file."""
self._projet = projet
self._wldset = None
self._wxdset = None
if projet is not None:
self.update_wldsets(projet.get_last_opened_wldset())
self.update_wxdsets(projet.get_last_opened_wxdset())
Expand Down

0 comments on commit c223383

Please sign in to comment.