[pitivi] ui.mainwindow: don't save as when we save a project we just opened from a file



commit c523e299de91f499d425c6d6b2bf768b99dc753f
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Fri Apr 17 23:17:42 2009 -0700

    ui.mainwindow: don't save as when we save a project we just opened from a file
---
 pitivi/formatters/base.py |    1 +
 pitivi/ui/mainwindow.py   |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pitivi/formatters/base.py b/pitivi/formatters/base.py
index 7d36cd2..f0aaeec 100644
--- a/pitivi/formatters/base.py
+++ b/pitivi/formatters/base.py
@@ -151,6 +151,7 @@ class Formatter(object, Signallable, Loggable):
             self.project.sources.addUris(uris)
 
         # finally return the project.
+        self.project.uri = location
         return self.project
 
     def saveProject(self, project, location, overwrite=False):
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 165ff7b..b520515 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -550,7 +550,8 @@ class PitiviMainWindow(gtk.Window, Loggable):
     def _saveProjectAsCb(self, unused_action):
         uri = self._showSaveAsDialog(self.app.current)
         if uri:
-            self.app.current.save(uri)
+            self.project.save(uri, overwrite=True)
+            self.project.uri = uri
 
     def _projectSettingsCb(self, unused_action):
         from projectsettings import ProjectSettingsDialog



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