[pitivi] Call newBlankProject() only once the UI has been initialized.



commit bdc74b263314b848a1c22f76bdbfd215ed664ea7
Author: Alessandro Decina <alessandro d gmail com>
Date:   Mon Jun 8 13:54:17 2009 +0200

    Call newBlankProject() only once the UI has been initialized.
---
 pitivi/application.py   |    2 +-
 pitivi/ui/sourcelist.py |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/pitivi/application.py b/pitivi/application.py
index b2f506a..ebf3a9a 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -132,7 +132,6 @@ class Pitivi(Loggable, Signallable):
 
         self.projectManager = ProjectManager()
         self._connectToProjectManager(self.projectManager)
-        self.projectManager.newBlankProject()
 
     #{ Shutdown methods
 
@@ -235,6 +234,7 @@ class InteractivePitivi(Pitivi):
         else:
             # load the passed filenames, optionally adding them to the timeline
             # (useful during development)
+            self.projectManager.newBlankProject()
             uris = ["file://" + os.path.abspath(path) for path in args]
             if options.add_to_timeline:
                 self.current.sources.connect("file_added",
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 6ece6cd..3c7b573 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -249,7 +249,6 @@ class SourceList(gtk.VBox, Loggable):
         # Connect to project.  We must remove and reset the callbacks when
         # changing project.
         self.project_signals = SignalGroup()
-        self._connectToProject(self.app.current)
         self.app.connect("new-project-loaded",
             self._newProjectLoadedCb)
         self.app.connect("new-project-failed",



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