[pitivi: 8/13] track: don't update the default sources if updates are disabled.



commit 28124ef9177e752aead75eed96111b7f9b26d0f7
Author: Alessandro Decina <alessandro d gmail com>
Date:   Mon Mar 1 21:26:45 2010 +0100

    track: don't update the default sources if updates are disabled.

 pitivi/timeline/track.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 9dac409..7e58a71 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -736,6 +736,12 @@ class Track(Signallable, Loggable):
             self.default_sources.append(gnl_object)
 
     def updateDefaultSources(self):
+        if not self.composition.props.update:
+            return
+
+        self.updateDefaultSourcesReal()
+
+    def updateDefaultSourcesReal(self):
         update = self.composition.props.update
         self.composition.props.update = True
         try:



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