[pitivi] ProjectManager should not have a timeline attribute.
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectManager should not have a timeline attribute.
- Date: Sun, 2 Sep 2012 04:02:35 +0000 (UTC)
commit e9a67bddc8a9ccff9e62ccc3b74aed6f4327d11d
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Sat Aug 11 20:55:56 2012 +0200
ProjectManager should not have a timeline attribute.
Fixes projects loading in the timeline.
pitivi/project.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 2c8cac5..3b3cff2 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -164,11 +164,11 @@ class ProjectManager(Signallable, Loggable):
self.emit("new-project-created", self.current)
- self.timeline = Timeline()
+ timeline = self.current.timeline
self.formatter = ges.PitiviFormatter()
self.formatter.connect("source-moved", self._formatterMissingURICb)
self.formatter.connect("loaded", self._projectLoadedCb)
- if self.formatter.load_from_uri(self.timeline, uri):
+ if self.formatter.load_from_uri(timeline, uri):
self.current.connect("project-changed", self._projectChangedCb)
return True
self.warn("Could not load project %s", uri)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]