[pitivi: 8/13] track: don't update the default sources if updates are disabled.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 8/13] track: don't update the default sources if updates are disabled.
- Date: Tue, 2 Mar 2010 11:13:39 +0000 (UTC)
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]