[pitivi] project: Restore the project's URI after exporting a copy as a tarball



commit 618b14d228559ffd0919a94a83a2617b3e5e5209
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sun Aug 25 17:06:28 2013 -0400

    project: Restore the project's URI after exporting a copy as a tarball

 pitivi/project.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 04496fe..8a6df65 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -310,7 +310,10 @@ class ProjectManager(Signallable, Loggable):
         try:
             directory = os.path.dirname(uri)
             tmp_uri = os.path.join(directory, tmp_name)
+            # saveProject updates the project URI... so we better back it up:
+            _old_uri = self.current.uri
             self.saveProject(tmp_uri)
+            self.current.uri = _old_uri
 
             # create tar file
             with tarfile.open(path_from_uri(uri), mode="w") as tar:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]