[pitivi] formatters.base.py: always set project name and uri after saving.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] formatters.base.py: always set project name and uri after saving.
- Date: Tue, 8 Sep 2009 07:34:57 +0000 (UTC)
commit caa1457649f29e1146911f6e7599cb93739aaa5b
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Mon Sep 7 14:49:10 2009 -0700
formatters.base.py: always set project name and uri after saving.
closes bug 594396
pitivi/formatters/base.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/formatters/base.py b/pitivi/formatters/base.py
index 4681ba7..5422416 100644
--- a/pitivi/formatters/base.py
+++ b/pitivi/formatters/base.py
@@ -196,8 +196,8 @@ class Formatter(Signallable, Loggable):
raise FormatterOverwriteError()
old_uri = project.uri
if self._saveProject(project, location):
- if old_uri is None:
- project.name = self._projectNameFromURI(location)
+ project.uri = location
+ project.name = self._projectNameFromURI(location)
self.emit("project-saved", project, location)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]