[pitivi] mainwindow: Properly return in _canLoadUri



commit 7f12c0ccc3a90b61d6e845749b44880721d31a17
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Fri Dec 28 19:07:37 2012 -0300

    mainwindow: Properly return in _canLoadUri

 pitivi/mainwindow.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 0c50c3d..e48ac59 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -755,7 +755,10 @@ class PitiviMainWindow(Gtk.Window, Loggable):
         return True
 
     def _canLoadUri(self, filterinfo, uri):
-        GES.Formatter.can_load_uri(filterinfo.uri)
+        try:
+            return GES.Formatter.can_load_uri(filterinfo.uri)
+        except:
+            return False
 
     def _undoCb(self, action):
         self.app.action_log.undo()



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