[pitivi] timeline: Be more strict when the project is loaded
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Be more strict when the project is loaded
- Date: Tue, 4 Feb 2014 21:54:23 +0000 (UTC)
commit 1795b7353103be48740a1187ad4bb4322a9d2cec
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Jan 12 03:32:09 2014 +0100
timeline: Be more strict when the project is loaded
pitivi/timeline/timeline.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index f6beb24..f9dc324 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1101,7 +1101,6 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
return False
def _scrollToPlayhead(self):
- #self.ruler._maybeUpdate()
if self.ruler.pressed or self.pressed:
self.pressed = False
return
@@ -1373,8 +1372,8 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
"""
When a project is loaded, we connect to its pipeline
"""
-
- if project:
+ assert self._project is project
+ if self._project:
self._seeker = self._project.seeker
self.timeline.setPipeline(self._project.pipeline)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]