Loading

Paste #p2ai6lxga

  1. diff --git a/webtranslate/config.py b/webtranslate/config.py
  2. --- a/webtranslate/config.py
  3. +++ b/webtranslate/config.py
  4. @@ -326,7 +326,6 @@ class ProjectCache:
  5.              return "A project file named \"{}\" already exists".format(disk_name)
  6.  
  7.          # Construct a new project from scratch.
  8. -        path = os.path.join(self.project_root, path)
  9.          storage = cfg.storage_format
  10.          if storage == STORAGE_ONE_FILE:
  11.              path = os.path.join(self.project_root, disk_name + ".xml")
  12. @@ -340,6 +339,7 @@ class ProjectCache:
  13.          pmd = ProjectMetaData(proj_store, human_name)
  14.          self.projects[disk_name] = pmd
  15.          pmd.pdata = data.Project(human_name, projtype, url)
  16. +        omd.data.set_modified()
  17.          pmd.create_statistics()
  18.          self.lru.append(pmd)
  19.          self.save_pmd(pmd)

Comments