[pitivi] ui.sourcelist: Don't load a new project which isn't "ready"
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] ui.sourcelist: Don't load a new project which isn't "ready"
- Date: Tue, 21 Apr 2009 09:59:21 -0400 (EDT)
commit ac8c91c2a7aa37bd17ff4cabeb93dfd2704caa1c
Author: Edward Hervey <bilboed bilboed com>
Date: Tue Apr 21 15:51:41 2009 +0200
ui.sourcelist: Don't load a new project which isn't "ready"
This happens with formatters that require discoverer to be run on its
sources.
---
pitivi/ui/sourcelist.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 2ebd576..e6eca4c 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -657,9 +657,14 @@ class SourceList(gtk.VBox, Loggable):
self.storemodel.clear()
self._connectToProject(project)
# synchronize the storemodel with the new project's sourcelist
- for uri, factory in project.sources:
- self.log("loading uri %s", uri)
- self._addFactory(factory)
+ if project.loaded:
+ for uri, factory in project.sources:
+ self.log("loading uri %s", uri)
+ self._addFactory(factory)
+ else:
+ if not self.infostub.showing:
+ self.pack_start(self.infostub, expand=False)
+ self.infostub.startingImport()
def _newProjectFailedCb(self, unused_pitivi, unused_reason,
unused_uri):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]