[pitivi] mainwindow: Other fix for change in SourceList API



commit 8b8d2938c77ff0b2712a382883bca7ce1437feb5
Author: Edward Hervey <bilboed bilboed com>
Date:   Wed Jun 24 16:26:23 2009 +0200

    mainwindow: Other fix for change in SourceList API

 pitivi/ui/mainwindow.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index e9895d1..b15cd57 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -970,9 +970,9 @@ class PitiviMainWindow(gtk.Window, Loggable):
             return
 
         # Use factory from our source list if we have the given uri
-        if uri in self.project.sources:
-            fact = self.project.sources[uri]
-        else:
+        try:
+            fact = self.project.sources.getUri(uri)
+        except:
             from pitivi.factories.file import FileSourceFactory
             fact = FileSourceFactory(uri)
         self._viewFactory(fact)



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